diff --git a/preferences/inc/class.uiaclprefs.inc.php b/preferences/inc/class.uiaclprefs.inc.php index ffd3cce456..ba3c186d95 100644 --- a/preferences/inc/class.uiaclprefs.inc.php +++ b/preferences/inc/class.uiaclprefs.inc.php @@ -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)