[TASK] Make array fault tolerant for recieving objects

This commit is contained in:
Philipp Dieter 2022-04-29 11:01:26 +02:00
parent e08526325d
commit 8927f3c402

View File

@ -45,7 +45,11 @@ class ArrayUtility
$value = self::removeEmptyStrings($value);
} else {
if (is_string($value) && !strlen($value)) {
if (is_array($array)) {
unset($array[$key]);
} else {
unset($array->$key);
}
}
}
}