mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Add a protection against overload when we launch for first time the account-page-selection.
This commit is contained in:
parent
b0410a57d2
commit
554a213fe3
@ -370,6 +370,11 @@
|
||||
$link_data['group_id'] = $group_id; // reset it
|
||||
|
||||
// --------------------------------- nextmatch ---------------------------
|
||||
|
||||
// no overload for the first loading
|
||||
if($query_type)
|
||||
{
|
||||
|
||||
$users = $this->search(array(
|
||||
'type' => $group_id ? $group_id : $use,
|
||||
'app' => $app,
|
||||
@ -379,6 +384,7 @@
|
||||
'query' => $query,
|
||||
'query_type' => $query_type,
|
||||
));
|
||||
} // querytype
|
||||
|
||||
$GLOBALS['phpgw']->template->set_var(array(
|
||||
'left' => $this->nextmatchs->left('/index.php',$start,$this->total,$link_data+array('query'=>$query)),
|
||||
@ -396,11 +402,13 @@
|
||||
$GLOBALS['phpgw']->template->set_var('lang_firstname', lang("firstname"));
|
||||
$GLOBALS['phpgw']->template->set_var('lang_lastname', lang("lastname"));
|
||||
|
||||
if( is_array($users) )
|
||||
{
|
||||
foreach($users as $user)
|
||||
{
|
||||
$GLOBALS['phpgw']->template->set_var('tr_color',$this->nextmatchs->alternate_row_color($tr_color,True));
|
||||
|
||||
// ---------------- template declaration for list records --------------------------
|
||||
// ---------------- template declaration for list records --------------------------
|
||||
|
||||
$GLOBALS['phpgw']->template->set_var(array(
|
||||
'lid' => $user['account_lid'],
|
||||
@ -412,6 +420,7 @@
|
||||
));
|
||||
$GLOBALS['phpgw']->template->fp('list','accounts_list',True);
|
||||
}
|
||||
}
|
||||
|
||||
$GLOBALS['phpgw']->template->set_var('accountsel_icon',$this->html->image('phpgwapi','users-big'));
|
||||
$GLOBALS['phpgw']->template->set_var('query_type',is_array($this->query_types) ? $this->html->select('query_type',$query_type,$this->query_types) : '');
|
||||
|
Loading…
Reference in New Issue
Block a user