Null is also not OK for icon

This commit is contained in:
Nathan Gray 2013-10-10 16:15:46 +00:00
parent 35a0132161
commit 129eb91b3d

View File

@ -82,7 +82,8 @@ egw.extend('links', egw.MODULE_GLOBAL, function() {
break; break;
case 'icon': case 'icon':
var app_data = this.app(_app); var app_data = this.app(_app);
if (typeof app_data != 'undefined' && typeof app_data.icon != 'undefined') if (typeof app_data != 'undefined' &&
typeof app_data.icon != 'undefined' && app_data.icon != null)
{ {
reg.icon = (typeof app_data.icon_app != 'undefined' ? app_data.icon_app : _app)+'/'+app_data.icon; reg.icon = (typeof app_data.icon_app != 'undefined' ? app_data.icon_app : _app)+'/'+app_data.icon;
} }