]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
buggy fetch for site owner
authorEvan Prodromou <evan@status.net>
Mon, 1 Feb 2010 03:55:07 +0000 (22:55 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 1 Feb 2010 03:55:07 +0000 (22:55 -0500)
classes/User.php

index 022044aac117ba366d374937ff164964a2bd9de5..4013fbc832d4388ac33a51b06c5ba09d7970d24b 100644 (file)
@@ -945,9 +945,9 @@ class User extends Memcached_DataObject
 
             $pr->orderBy('created');
 
-            $pr->limit(0, 1);
+            $pr->limit(1);
 
-            if ($pr->fetch($true)) {
+            if ($pr->find(true)) {
                 $owner = User::staticGet('id', $pr->profile_id);
             } else {
                 $owner = null;