Changed get_list() to use query_limit() instead of limit().

This commit is contained in:
skeeter 2001-09-02 07:19:46 +00:00
parent 8f7eb4e77f
commit 09f6cdab74

View File

@ -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