fix Scurtinizer bug

This commit is contained in:
Ralf Becker 2016-08-28 10:34:51 +02:00
parent 75b3330188
commit 87f54ac14f

View File

@ -781,7 +781,10 @@ class Principals extends Handler
if ($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'none' &&
!isset($GLOBALS['egw_info']['user']['apps']['admin']))
{
$files[] = $this->add_account($this->accounts->read($GLOBALS['egw_info']['user']['account_id']));
if (($account = $this->accounts->read($GLOBALS['egw_info']['user']['account_id'])))
{
$files[] = $this->add_account($account);
}
}
else
{