From fb36094eb176055f175e69bf9e6f11ff477cc11c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 31 Jan 2010 22:55:07 -0500 Subject: [PATCH] buggy fetch for site owner --- classes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5