summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-31 22:55:07 -0500
committerEvan Prodromou <evan@status.net>2010-01-31 22:55:07 -0500
commitfb36094eb176055f175e69bf9e6f11ff477cc11c (patch)
tree0c3600c5ac31844074a0298d7c45603b5874dc1b
parentdc62246443e3584ef5267505275f618f6fa86bf7 (diff)
buggy fetch for site owner
-rw-r--r--classes/User.php4
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;