forked from extern/egroupware
Avoid 'undefined' showing up in attributes when variable or value is missing
This commit is contained in:
parent
234832d1f0
commit
a7654f7952
@ -329,7 +329,7 @@
|
||||
"]";
|
||||
}
|
||||
|
||||
return result;
|
||||
return '(typeof _'+_variable.variable+' != "undefined" && typeof '+result + '!="undefined" ? ' + result + ':"")';
|
||||
}
|
||||
|
||||
_throwCompilerErr("Variable $" + _variable.variable + " is not defined.");
|
||||
|
Loading…
Reference in New Issue
Block a user