diff --git a/phpgwapi/js/jsapi/egw_debug.js b/phpgwapi/js/jsapi/egw_debug.js index cf7261ddb6..76b7db68a2 100644 --- a/phpgwapi/js/jsapi/egw_debug.js +++ b/phpgwapi/js/jsapi/egw_debug.js @@ -357,7 +357,7 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) { } } // raise errors to user, if LOCAL_LOG_LEVEL > 0 - if (LOCAL_LOG_LEVEL_level == "error") raise_error(args); + if (LOCAL_LOG_LEVEL && _level == "error") raise_error(args); // log to html5 localStorage if (typeof stack != 'undefined') args.pop(); // remove stacktrace again