No need to log $tid here
authorRoland Häder <roland@mxchange.org>
Thu, 23 Jun 2022 14:14:33 +0000 (16:14 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 23 Jun 2022 15:30:17 +0000 (17:30 +0200)
src/Database/Database.php
src/Model/Tag.php

index e5dec2d75e6b074b9da6802e9c9509b64ae2db8d..2231ca0ccb9fd335ea0c1df1024fa3f14e93360b 100644 (file)
@@ -1761,7 +1761,6 @@ class Database
         * Checks if $array is 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
         */
        public function isResult($array): bool
@@ -1842,6 +1841,7 @@ class Database
                $upds = implode(', ', $upd);
 
                $r = $this->e(sprintf("UPDATE %s SET %s;", DBA::quoteIdentifier($table), $upds));
+
                if (!$this->isResult($r)) {
                        throw new \RuntimeException("Failed updating `$table`: " . $this->errorMessage());
                }
index 538cedfb6b29b639890555816ec7dbef004dc383..1381f686119fdc197cd5e86faadde60dd9812e43 100644 (file)
@@ -243,9 +243,8 @@ class Tag
                        return $tid;
                }
 
-               // Also log type and tag id
+               // Also log type
                $fields['type'] = $type;
-               $fields['tid'] = $tid;
 
                Logger::error('No tag id created', $fields);
                return 0;