ignore emailadmin_notification::write calls without account_id, happending eg. in setup, instead of throwing an exception stalling setup

This commit is contained in:
Ralf Becker 2014-08-25 08:19:40 +00:00
parent 61190548ed
commit fded85974a

View File

@ -94,7 +94,7 @@ class emailadmin_notifications
{
if (!is_numeric($account_id) || !($account_id >= 0))
{
throw new egw_exception_wrong_parameter(__METHOD__."($acc_id, ".array2string($account_id).", ...) account_id NOT >= 0!");
return 0; // nothing to save, happens eg. in setup
}
if ($account_id && !$folders && ($default = self::read($acc_id, 0)) && $default['notify_folders'])