- relocate array keys safely

This commit is contained in:
jorton 2007-02-05 12:47:58 +00:00
parent 9894d03e66
commit d6187dd6d7

View File

@ -37,7 +37,9 @@ function relocate_array($array) {
$result = array();
foreach ($array as $key => $value) {
$key = relocate_string($key);
if (is_string($key)) {
$key = relocate_string($key);
}
$result[$key] = relocate_value($value);
}