]> git.mxchange.org Git - friendica.git/commitdiff
Add feedback
authorPhilipp <admin@philipp.info>
Sat, 18 Sep 2021 10:55:17 +0000 (12:55 +0200)
committerPhilipp <admin@philipp.info>
Sat, 18 Sep 2021 10:55:17 +0000 (12:55 +0200)
src/Database/Database.php
src/Module/Contact.php

index a93d4e610bb69f18d48044a9a78a86b35250decb..28283b1c8175d8273d980c0ffe17b021b8074cdc 100644 (file)
@@ -1462,7 +1462,7 @@ class Database
                $row = $this->fetchFirst($sql, $condition);
 
                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;
                } else {
                        return (int)$row['count'];
index 7d323c7a3ecbb59cc8367a2a972fb75b0291359f..281e690086dee3073254a0fdd82db1872c2347cd 100644 (file)
@@ -290,7 +290,7 @@ class Contact extends BaseModule
                                $contact_id = $data['user'];
                        }
 
-                       if (empty($data)) {
+                       if (!empty($data)) {
                                $contact = DBA::selectFirst('contact', [], [
                                        'id'      => $contact_id,
                                        'uid'     => [0, local_user()],