mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
Add feedback :-)
This commit is contained in:
parent
89a085a12c
commit
462f76352e
4 changed files with 16 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue