From 0341383c397ccbd7312c77e92f5810fb45b10786 Mon Sep 17 00:00:00 2001 From: jengo Date: Tue, 30 Jan 2001 00:17:15 +0000 Subject: [PATCH] Moved it over to use db->limit() instead of nextmatchs->sql_limit() --- admin/currentusers.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/admin/currentusers.php b/admin/currentusers.php index 109f116ae1..b6ff102073 100755 --- a/admin/currentusers.php +++ b/admin/currentusers.php @@ -22,12 +22,11 @@ $start = 0; } - $limit = $phpgw->nextmatchs->sql_limit($start); + $limit = $phpgw->db->limit($start); $phpgw->db->query("select count(*) from phpgw_sessions",__LINE__,__FILE__); $phpgw->db->next_record(); $total = $phpgw->db->f(0); - $limit = $phpgw->nextmatchs->sql_limit($start); $phpgw->template->set_var("lang_current_users",lang("List of current users")); $phpgw->template->set_var("bg_color",$phpgw_info["theme"][bg_color]); @@ -51,7 +50,7 @@ $ordermethod = "order by session_dla asc"; } - $phpgw->db->query("select * from phpgw_sessions $ordermethod limit $limit",__LINE__,__FILE__); + $phpgw->db->query("select * from phpgw_sessions $ordermethod " . $phpgw->db->limit($start),__LINE__,__FILE__); $i = 0; while ($phpgw->db->next_record()) {