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:28:10 +00:00
parent 7b023713b8
commit 20a5ce1293

View File

@ -35,8 +35,10 @@ class jerryr_framework extends idots_framework
$this->tplsav2->menuitems = array(); $this->tplsav2->menuitems = array();
$this->tplsav2->menuinfoitems = array(); $this->tplsav2->menuinfoitems = array();
if($GLOBALS['egw_info']['user']['apps']['home'] && isset($apps['home']))
{
$this->_add_topmenu_item($apps['home']); $this->_add_topmenu_item($apps['home']);
}
/*if($GLOBALS['egw_info']['user']['apps']['manual']) /*if($GLOBALS['egw_info']['user']['apps']['manual'])
{ {
$this->_add_topmenu_item('manual'); $this->_add_topmenu_item('manual');
@ -46,7 +48,7 @@ class jerryr_framework extends idots_framework
{ {
$this->_add_topmenu_item($apps['preferences']); $this->_add_topmenu_item($apps['preferences']);
} }
if($GLOBALS['egw_info']['user']['apps']['manual'] && $apps['manual']) if($GLOBALS['egw_info']['user']['apps']['manual'] && isset($apps['manual']))
{ {
$this->_add_topmenu_item($apps['manual']); $this->_add_topmenu_item($apps['manual']);
} }