]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/Database.php
Add feedback :-)
[friendica.git] / src / Database / Database.php
index c11e04936b26f83664627fa721ad0baad0f316df..e4a4a0f571bf4bd0efb0f0c5adcb08872a658d9f 100644 (file)
@@ -1461,8 +1461,8 @@ class Database
 
                $row = $this->fetchFirst($sql, $condition);
 
-               if (empty($row['count'])) {
-                       $this->logger->notice('Invalid count.', ['table' => $table, 'expression' => $expression, 'condition' => $condition_string]);
+               if (!isset($row['count'])) {
+                       $this->logger->notice('Invalid count.', ['table' => $table, 'expression' => $expression, 'condition' => $condition_string, 'callstack' => System::callstack()]);
                        return 0;
                } else {
                        // Ensure to always return either a "null" or a numeric value