No need to log $tid here
This commit is contained in:
parent
fd8f4269ff
commit
202857ba7d
|
@ -1761,7 +1761,6 @@ class Database
|
||||||
* Checks if $array is a filled array with at least one entry.
|
* Checks if $array is a filled array with at least one entry.
|
||||||
*
|
*
|
||||||
* @param mixed $array A filled array with at least one entry
|
* @param mixed $array A filled array with at least one entry
|
||||||
*
|
|
||||||
* @return boolean Whether $array is a filled array or an object with rows
|
* @return boolean Whether $array is a filled array or an object with rows
|
||||||
*/
|
*/
|
||||||
public function isResult($array): bool
|
public function isResult($array): bool
|
||||||
|
@ -1842,6 +1841,7 @@ class Database
|
||||||
$upds = implode(', ', $upd);
|
$upds = implode(', ', $upd);
|
||||||
|
|
||||||
$r = $this->e(sprintf("UPDATE %s SET %s;", DBA::quoteIdentifier($table), $upds));
|
$r = $this->e(sprintf("UPDATE %s SET %s;", DBA::quoteIdentifier($table), $upds));
|
||||||
|
|
||||||
if (!$this->isResult($r)) {
|
if (!$this->isResult($r)) {
|
||||||
throw new \RuntimeException("Failed updating `$table`: " . $this->errorMessage());
|
throw new \RuntimeException("Failed updating `$table`: " . $this->errorMessage());
|
||||||
}
|
}
|
||||||
|
|
|
@ -243,9 +243,8 @@ class Tag
|
||||||
return $tid;
|
return $tid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also log type and tag id
|
// Also log type
|
||||||
$fields['type'] = $type;
|
$fields['type'] = $type;
|
||||||
$fields['tid'] = $tid;
|
|
||||||
|
|
||||||
Logger::error('No tag id created', $fields);
|
Logger::error('No tag id created', $fields);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user