mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
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
|
// Javascript
|
||||||
if (_type == "js")
|
if (_type == "js")
|
||||||
{
|
{
|
||||||
if (typeof _val == "function")
|
if (typeof _val == "function" || typeof _val == "undefined")
|
||||||
{
|
{
|
||||||
return _val;
|
return _val;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user