From: Evan Prodromou Date: Mon, 1 Feb 2010 03:55:07 +0000 (-0500) Subject: buggy fetch for site owner X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb36094eb176055f175e69bf9e6f11ff477cc11c;p=quix0rs-gnu-social.git buggy fetch for site owner --- diff --git a/classes/User.php b/classes/User.php index 022044aac1..4013fbc832 100644 --- a/classes/User.php +++ b/classes/User.php @@ -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;