allow to pass $only_current_user === 0, to get only mail accounts valid for all users

This commit is contained in:
ralf 2023-12-18 13:13:06 +02:00
parent dae4fe714e
commit d28fbfeab3

View File

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