mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
ignore emailadmin_notification::write calls without account_id, happending eg. in setup, instead of throwing an exception stalling setup
This commit is contained in:
parent
61190548ed
commit
fded85974a
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user