fix error if query parameters contain null

This commit is contained in:
Ralf Becker 2013-12-12 03:43:17 +00:00
parent 1dc6964754
commit fef5bb4972

View File

@ -314,7 +314,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function() {
for(var name in vars) for(var name in vars)
{ {
var val = vars[name]; var val = vars[name] || ''; // fix error for eg. null, which is an object!
if (typeof val == 'object') if (typeof val == 'object')
{ {
for(var i=0; i < val.length; ++i) for(var i=0; i < val.length; ++i)