Compare commits
2 Commits
43c088850b
...
007c3368f7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
007c3368f7 | ||
![]() |
8927f3c402 |
@ -45,7 +45,11 @@ class ArrayUtility
|
|||||||
$value = self::removeEmptyStrings($value);
|
$value = self::removeEmptyStrings($value);
|
||||||
} else {
|
} else {
|
||||||
if (is_string($value) && !strlen($value)) {
|
if (is_string($value) && !strlen($value)) {
|
||||||
|
if (is_array($array)) {
|
||||||
unset($array[$key]);
|
unset($array[$key]);
|
||||||
|
} else {
|
||||||
|
unset($array->$key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user