From 7b023713b8ccadd18787e9bc8e6cd47e66eb778c Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 11 Aug 2008 07:27:30 +0000 Subject: [PATCH] fix for a fatal error when application home is not available for the user --- phpgwapi/templates/idots/class.idots_framework.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index df3be6e0fb..991fdd4df8 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -580,7 +580,10 @@ class idots_framework extends egw_framework $this->tplsav2->menuitems = array(); $this->tplsav2->menuinfoitems = array(); - $this->_add_topmenu_item($apps['home']); + if($GLOBALS['egw_info']['user']['apps']['home'] && isset($apps['home'])) + { + $this->_add_topmenu_item($apps['home']); + } if($GLOBALS['egw_info']['user']['apps']['preferences']) {