From 77c889f9074a756e158b1ac29c936b9d959e5c14 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 9 Dec 2009 23:15:46 +0000 Subject: [PATCH] Don't clear items, it will erase anything added by apps in topmenu_info hook --- phpgwapi/templates/idots/class.idots_framework.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index b873fca443..060a650a08 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -598,8 +598,12 @@ class idots_framework extends egw_framework */ function topmenu(array &$vars,array &$apps) { - $this->tplsav2->menuitems = array(); - $this->tplsav2->menuinfoitems = array(); + if(!is_array($this->tplsav2->menuitems)) { + $this->tplsav2->menuitems = array(); + } + if(!is_array($this->tplsav2->menuinfoitems)) { + $this->tplsav2->menuinfoitems = array(); + } if($GLOBALS['egw_info']['user']['apps']['home'] && isset($apps['home'])) {