forked from extern/egroupware
Some more type checking before use to avoid errors
This commit is contained in:
parent
782e3438ee
commit
4d34079576
@ -230,7 +230,7 @@ function et2_checkType(_val, _type, _attr, _widget)
|
||||
// Javascript
|
||||
if (_type == "js")
|
||||
{
|
||||
if (typeof _val == "function")
|
||||
if (typeof _val == "function" || typeof _val == "undefined")
|
||||
{
|
||||
return _val;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user