buggy fetch for site owner
This commit is contained in:
parent
dc62246443
commit
fb36094eb1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user