mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
Fix settings trim cleaning arrays
This commit is contained in:
@@ -20,6 +20,7 @@ function expandObjBy(obj1, obj2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function trim(obj1, obj2) {
|
function trim(obj1, obj2) {
|
||||||
|
if (obj1 instanceof Array) { return; }
|
||||||
var key, val1;
|
var key, val1;
|
||||||
for (key in obj1) {
|
for (key in obj1) {
|
||||||
if (obj1.hasOwnProperty(key)) {
|
if (obj1.hasOwnProperty(key)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user