getGroups was not handling the case where limit=null correctly
This commit is contained in:
@@ -577,6 +577,7 @@ class User extends Memcached_DataObject
|
||||
'WHERE group_member.profile_id = %d ' .
|
||||
'ORDER BY group_member.created DESC ';
|
||||
|
||||
if ($offset>0 && !is_null($limit)) {
|
||||
if ($offset) {
|
||||
if (common_config('db','type') == 'pgsql') {
|
||||
$qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
|
||||
@@ -584,6 +585,7 @@ class User extends Memcached_DataObject
|
||||
$qry .= ' LIMIT ' . $offset . ', ' . $limit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$groups = new User_group();
|
||||
|
||||
|
Reference in New Issue
Block a user