diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index a1345e8fa8..68546344e0 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -1344,14 +1344,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(); } /**