mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
Changed get_list() to use query_limit() instead of limit().
This commit is contained in:
parent
8f7eb4e77f
commit
09f6cdab74
@ -158,15 +158,6 @@
|
|||||||
|
|
||||||
function get_list($_type='both', $start = '',$sort = '', $order = '', $query = '', $offset = '')
|
function get_list($_type='both', $start = '',$sort = '', $order = '', $query = '', $offset = '')
|
||||||
{
|
{
|
||||||
if ($offset)
|
|
||||||
{
|
|
||||||
$limitclause = $GLOBALS['phpgw']->db->limit($start,$offset);
|
|
||||||
}
|
|
||||||
elseif ($start && !$offset)
|
|
||||||
{
|
|
||||||
$limitclause = $GLOBALS['phpgw']->db->limit($start);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! $sort)
|
if (! $sort)
|
||||||
{
|
{
|
||||||
$sort = 'desc';
|
$sort = 'desc';
|
||||||
@ -195,8 +186,8 @@
|
|||||||
$whereclause = '';
|
$whereclause = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "SELECT * FROM phpgw_accounts $whereclause $orderclause $limitclause";
|
$sql = "SELECT * FROM phpgw_accounts $whereclause $orderclause";
|
||||||
$this->db->query($sql,__LINE__,__FILE__);
|
$this->db->limit_query($sql,$start,__LINE__,__FILE__,$offset);
|
||||||
while ($this->db->next_record())
|
while ($this->db->next_record())
|
||||||
{
|
{
|
||||||
// get user information from ldap only, if it's a user, not a group
|
// get user information from ldap only, if it's a user, not a group
|
||||||
|
Loading…
Reference in New Issue
Block a user