]> git.mxchange.org Git - friendica.git/commitdiff
Issue 8557: We have to fetch only a single row
authorMichael <heluecht@pirati.ca>
Tue, 28 Apr 2020 21:13:37 +0000 (21:13 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 28 Apr 2020 21:13:37 +0000 (21:13 +0000)
src/Model/Register.php

index 5eb9a417caecc5e4112aab823dcaf621e76b3b99..81551d2b9b63ba0a2c0f9afebaa807446dc0b56a 100644 (file)
@@ -56,7 +56,7 @@ class Register
         */
        public static function getPendingForUser(int $uid)
        {
-               return DBA::selectToArray('pending-view', [], ['uid' => $uid]);
+               return DBA::select('pending-view', [], ['uid' => $uid, 'self' => true]);
        }
 
        /**