From fded85974aa76074094c1a93dc74ba7cae1e88af Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Aug 2014 08:19:40 +0000 Subject: [PATCH] ignore emailadmin_notification::write calls without account_id, happending eg. in setup, instead of throwing an exception stalling setup --- emailadmin/inc/class.emailadmin_notifications.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emailadmin/inc/class.emailadmin_notifications.inc.php b/emailadmin/inc/class.emailadmin_notifications.inc.php index 7921ffa32c..8595af883a 100644 --- a/emailadmin/inc/class.emailadmin_notifications.inc.php +++ b/emailadmin/inc/class.emailadmin_notifications.inc.php @@ -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'])