From 09f6cdab7420c3083d9bb51a659362effccf8294 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 2 Sep 2001 07:19:46 +0000 Subject: [PATCH] Changed get_list() to use query_limit() instead of limit(). --- phpgwapi/inc/class.accounts_ldap.inc.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 23270bfe9d..5675462374 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -158,15 +158,6 @@ 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) { $sort = 'desc'; @@ -195,8 +186,8 @@ $whereclause = ''; } - $sql = "SELECT * FROM phpgw_accounts $whereclause $orderclause $limitclause"; - $this->db->query($sql,__LINE__,__FILE__); + $sql = "SELECT * FROM phpgw_accounts $whereclause $orderclause"; + $this->db->limit_query($sql,$start,__LINE__,__FILE__,$offset); while ($this->db->next_record()) { // get user information from ldap only, if it's a user, not a group