diff options
author | Evan Prodromou <evan@status.net> | 2010-01-31 22:55:07 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-31 22:55:07 -0500 |
commit | fb36094eb176055f175e69bf9e6f11ff477cc11c (patch) | |
tree | 0c3600c5ac31844074a0298d7c45603b5874dc1b /classes/User.php | |
parent | dc62246443e3584ef5267505275f618f6fa86bf7 (diff) |
buggy fetch for site owner
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/User.php b/classes/User.php index 022044aac..4013fbc83 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; |