d91852cc7e
Last commit switched from raw arrays to associative arrays. That leads to json_encode() to generate an object instead of an array, ultimately leading to problems with the rest of code expecting an array. By using array_values() we are moving back to the non-associative array. Also, fix some file permissions.