Add feedback
This commit is contained in:
parent
fd22906d70
commit
c00da77c67
|
@ -1462,7 +1462,7 @@ class Database
|
||||||
$row = $this->fetchFirst($sql, $condition);
|
$row = $this->fetchFirst($sql, $condition);
|
||||||
|
|
||||||
if (!isset($row['count'])) {
|
if (!isset($row['count'])) {
|
||||||
$this->logger->notice('Invalid count.', ['table' => $table, 'expression' => $expression, 'condition' => $condition_string, 'callstack' => System::callstack()]);
|
$this->logger->notice('Invalid count.', ['table' => $table, 'row' => $row, 'expression' => $expression, 'condition' => $condition_string, 'callstack' => System::callstack()]);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return (int)$row['count'];
|
return (int)$row['count'];
|
||||||
|
|
|
@ -290,7 +290,7 @@ class Contact extends BaseModule
|
||||||
$contact_id = $data['user'];
|
$contact_id = $data['user'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($data)) {
|
if (!empty($data)) {
|
||||||
$contact = DBA::selectFirst('contact', [], [
|
$contact = DBA::selectFirst('contact', [], [
|
||||||
'id' => $contact_id,
|
'id' => $contact_id,
|
||||||
'uid' => [0, local_user()],
|
'uid' => [0, local_user()],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user