buggy fetch for site owner

This commit is contained in:
Evan Prodromou 2010-01-31 22:55:07 -05:00
parent dc62246443
commit fb36094eb1

View File

@ -945,9 +945,9 @@ class User extends Memcached_DataObject
$pr->orderBy('created'); $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); $owner = User::staticGet('id', $pr->profile_id);
} else { } else {
$owner = null; $owner = null;