killed php warning if search returns no result

This commit is contained in:
Ralf Becker 2006-10-28 10:11:42 +00:00
parent 2e0e11d5a7
commit 62831250e1

View File

@ -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)