mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
make sure null is returned as null, not as empty object ({})
This commit is contained in:
parent
89fd9e35cf
commit
d46def6606
@ -68,7 +68,8 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
|
||||
}
|
||||
if (_name == "*") return typeof prefs[_app] ==='object' ? jQuery.extend({},prefs[_app]) : prefs[_app];
|
||||
|
||||
return typeof prefs[_app][_name] ==='object'?jQuery.extend({},prefs[_app][_name]):prefs[_app][_name];
|
||||
return typeof prefs[_app][_name] === 'object' && prefs[_app][_name] !== null ?
|
||||
jQuery.extend({},prefs[_app][_name]) : prefs[_app][_name];
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user