Remove extra call to accounts->get_list()

This commit is contained in:
Miles Lott 2001-03-27 03:04:36 +00:00
parent cb0edadf20
commit 4138b055eb

View File

@ -21,7 +21,7 @@
if ($query) { if ($query) {
$querymethod = " AND account_firstname LIKE '%$query%' OR account_lastname LIKE " $querymethod = " AND account_firstname LIKE '%$query%' OR account_lastname LIKE "
. "'%$query%' OR account_lid LIKE '%$query%' "; . "'%$query%' OR account_lid LIKE '%$query%' ";
} }
$phpgw->db->query("SELECT COUNT(*) FROM phpgw_accounts WHERE account_type='g'".$querymethod,__LINE__,__FILE__); $phpgw->db->query("SELECT COUNT(*) FROM phpgw_accounts WHERE account_type='g'".$querymethod,__LINE__,__FILE__);
@ -37,7 +37,6 @@
'empty_row' => 'accounts_row_empty.tpl' 'empty_row' => 'accounts_row_empty.tpl'
)); ));
$account_info = $phpgw->accounts->get_list('groups',$start,$sort, $order, $query, $total);
$total = account_total($query); $total = account_total($query);
$p->set_var("th_bg",$phpgw_info["theme"]["th_bg"]); $p->set_var("th_bg",$phpgw_info["theme"]["th_bg"]);