mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
allow to pass $only_current_user === 0, to get only mail accounts valid for all users
This commit is contained in:
parent
dae4fe714e
commit
d28fbfeab3
@ -1489,7 +1489,7 @@ class Account implements \ArrayAccess
|
||||
{
|
||||
//error_log(__METHOD__."($only_current_user, $just_name, '$order_by', $offset, $num_rows)");
|
||||
$where = array();
|
||||
if ($only_current_user)
|
||||
if ($only_current_user !== false)
|
||||
{
|
||||
$account_id = $only_current_user === true ? $GLOBALS['egw_info']['user']['account_id'] : $only_current_user;
|
||||
// no account_id happens eg. for notifications during login
|
||||
|
Loading…
Reference in New Issue
Block a user