forked from GNUsocial/gnu-social
used standard SQL that mysql and pgsql both like
This commit is contained in:
parent
b833b725a8
commit
b9ea2bf1bc
@ -627,11 +627,7 @@ class User extends Memcached_DataObject
|
||||
'ORDER BY subscription.created DESC ';
|
||||
|
||||
if ($offset) {
|
||||
if (common_config('db','type') == 'pgsql') {
|
||||
$qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
|
||||
} else {
|
||||
$qry .= ' LIMIT ' . $offset . ', ' . $limit;
|
||||
}
|
||||
$qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
|
||||
}
|
||||
|
||||
$profile = new Profile();
|
||||
|
Loading…
Reference in New Issue
Block a user