mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
Don't clear items, it will erase anything added by apps in topmenu_info hook
This commit is contained in:
parent
f0972d7409
commit
77c889f907
@ -598,8 +598,12 @@ class idots_framework extends egw_framework
|
|||||||
*/
|
*/
|
||||||
function topmenu(array &$vars,array &$apps)
|
function topmenu(array &$vars,array &$apps)
|
||||||
{
|
{
|
||||||
$this->tplsav2->menuitems = array();
|
if(!is_array($this->tplsav2->menuitems)) {
|
||||||
$this->tplsav2->menuinfoitems = array();
|
$this->tplsav2->menuitems = array();
|
||||||
|
}
|
||||||
|
if(!is_array($this->tplsav2->menuinfoitems)) {
|
||||||
|
$this->tplsav2->menuinfoitems = array();
|
||||||
|
}
|
||||||
|
|
||||||
if($GLOBALS['egw_info']['user']['apps']['home'] && isset($apps['home']))
|
if($GLOBALS['egw_info']['user']['apps']['home'] && isset($apps['home']))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user