Add feedback :-)

This commit is contained in:
Philipp 2021-09-15 00:31:33 +02:00
parent 89a085a12c
commit 462f76352e
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 16 additions and 10 deletions

View 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