]> git.mxchange.org Git - friendica.git/commitdiff
It has to be "selectFirst"
authorMichael <heluecht@pirati.ca>
Wed, 29 Apr 2020 01:40:59 +0000 (01:40 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 29 Apr 2020 01:40:59 +0000 (01:40 +0000)
src/Model/Register.php

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