]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Replace dba::select(limit => 1) by dba::selectOne
[friendica.git] / src / Worker / Notifier.php
index 5c86a95efe26e8407356996bb4d5e9955986a5f7..50ac15200c6b900063f6f5fdb88d508037d8b7a9 100644 (file)
@@ -265,9 +265,9 @@ class Notifier {
                                ($owner['id'] != $target_item['contact-id']) &&
                                ($target_item['uri'] === $target_item['parent-uri'])) {
 
-                               $fields = array('forum', 'prv');
-                               $condition = array('id' => $target_item['contact-id']);
-                               $contact = dba::select('contact', $fields, $condition, array('limit' => 1));
+                               $fields = ['forum', 'prv'];
+                               $condition = ['id' => $target_item['contact-id']];
+                               $contact = dba::selectOne('contact', $fields, $condition);
                                if (!DBM::is_result($contact)) {
                                        // Should never happen
                                        return false;