fix for a fatal error when application home is not available for the user

This commit is contained in:
Klaus Leithoff 2008-08-11 07:27:30 +00:00
parent d6facc9467
commit 7b023713b8

View File

@ -580,7 +580,10 @@ class idots_framework extends egw_framework
$this->tplsav2->menuitems = array(); $this->tplsav2->menuitems = array();
$this->tplsav2->menuinfoitems = 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']) if($GLOBALS['egw_info']['user']['apps']['preferences'])
{ {