]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Profile_prefs::getAll fix call to listFind
authorChimo <chimo@chromic.org>
Thu, 17 Dec 2015 14:55:39 +0000 (14:55 +0000)
committerChimo <chimo@chromic.org>
Thu, 17 Dec 2015 14:55:39 +0000 (14:55 +0000)
2nd argument needs to be an array

classes/Profile_prefs.php

index 72a707cae86813149afad1297b1afd0c8a1e2bcb..996fc1b6b6ebbd26c11ad73d1b73a943f5a4396c 100644 (file)
@@ -85,7 +85,7 @@ class Profile_prefs extends Managed_DataObject
     static function getAll(Profile $profile)
     {
         try {
-            $prefs = self::listFind('profile_id', $profile->getID());
+            $prefs = self::listFind('profile_id', array($profile->getID()));
         } catch (NoResultException $e) {
             return array();
         }