diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index ad6d7fbc..933a5223 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -34,7 +34,11 @@ function updateValueByKey(&$array, $key, $newValue) { } } - $array[$key] = $newValue; + // push the new value in the array + $array[] = [ + 'key' => $key, + 'value' => $newValue + ]; } function updateValueByKeyArr(&$array, $key, $newValue) {