diff --git a/etemplate/js/et2_core_common.js b/etemplate/js/et2_core_common.js index 6bb85d7a1a..936b37d3df 100644 --- a/etemplate/js/et2_core_common.js +++ b/etemplate/js/et2_core_common.js @@ -95,10 +95,12 @@ function et2_checkType(_val, _type, _attr, _cname) function _err() { var res = et2_typeDefaults[_type]; - egw.debug("warn", "'" + _val + "' was not of specified _type '" + - _type + (_attr != null ? "' for attribute '" + _attr + "' " : "") + - "and is now '" + res + "'"); - + if(typeof _val != "undefined" && _val) + { + egw.debug("warn", "'" + _val + "' was not of specified _type '" + + _type + (_attr != null ? "' for attribute '" + _attr + "' " : "") + + "and is now '" + res + "'"); + } return res; }