- relocate array keys safely
This commit is contained in:
parent
9894d03e66
commit
d6187dd6d7
@ -37,7 +37,9 @@ function relocate_array($array) {
|
|||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
|
if (is_string($key)) {
|
||||||
$key = relocate_string($key);
|
$key = relocate_string($key);
|
||||||
|
}
|
||||||
$result[$key] = relocate_value($value);
|
$result[$key] = relocate_value($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user