diff --git a/api/js/egw_action/egw_menu_dhtmlx.js b/api/js/egw_action/egw_menu_dhtmlx.js
index cdfdd3e230..477414fb1e 100644
--- a/api/js/egw_action/egw_menu_dhtmlx.js
+++ b/api/js/egw_action/egw_menu_dhtmlx.js
@@ -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';
}