mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
killed php warning if search returns no result
This commit is contained in:
parent
2e0e11d5a7
commit
62831250e1
@ -212,9 +212,9 @@
|
||||
}
|
||||
$header_type = '';
|
||||
$processed = Array();
|
||||
foreach($accounts as $uid => $data)
|
||||
foreach((array)$accounts as $uid => $data)
|
||||
{
|
||||
if ($data['account_type'] == 'u' && $uid == $owner)
|
||||
if ($data['account_type'] == 'u' && $uid == $owner || !$uid)
|
||||
continue; /* no need to grant to self if user */
|
||||
|
||||
if ($data['account_type'] != $header_type)
|
||||
|
Loading…
Reference in New Issue
Block a user