diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index 3f42a1be3d..384a7027d6 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -1397,14 +1397,15 @@ class egw_link extends solink */ static public function run_notifies() { - foreach(self::$notifies as $args) + //error_log(__METHOD__."() count(self::\$notifies)=".count(self::$notifies)); + while(self::$notifies) { + $args = array_shift(self::$notifies); $method = $args['method']; unset($args['method']); //error_log(__METHOD__."() calling $method(".array2string($args).')'); ExecMethod($method, $args); } - self::$notifies = array(); } /**