mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Moved it over to use db->limit() instead of nextmatchs->sql_limit()
This commit is contained in:
parent
813d2e72ed
commit
0341383c39
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user