mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Make sure data is available before using it
This commit is contained in:
parent
bde724d29f
commit
feac8a1e80
@ -99,7 +99,9 @@ function egwMenuImpl(_structure)
|
||||
// Add disableIfNoEPL class to the relevant action's DOM
|
||||
for(var i in this.dhtmlxmenu.idPull)
|
||||
{
|
||||
if (this.dhtmlxmenu.userData[i+'_egw_menu'] && this.dhtmlxmenu.userData[i+'_egw_menu']['data']['disableIfNoEPL'])
|
||||
if (this.dhtmlxmenu.userData[i+'_egw_menu'] &&
|
||||
this.dhtmlxmenu.userData[i+'_egw_menu']['data'] &&
|
||||
this.dhtmlxmenu.userData[i+'_egw_menu']['data']['disableIfNoEPL'])
|
||||
{
|
||||
this.dhtmlxmenu.idPull[i].className += ' disableIfNoEPL';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user