add flag for json_decode to return associative array

This commit is contained in:
Matthew Saunders Brown 2023-03-14 15:46:29 -07:00
parent af0c34e64b
commit 4bc642903a

View File

@ -17,7 +17,7 @@ if ($virtualhost == "") {
}
if (is_readable("/var/vmail/$virtualhost/.exp/roundcubemail.json")) {
$roundcubemail = json_decode(file_get_contents("/var/vmail/$virtualhost/.exp/roundcubemail.json"));
$roundcubemail = json_decode(file_get_contents("/var/vmail/$virtualhost/.exp/roundcubemail.json"), TRUE);
} else {
echo "$virtualhost roundcubemail file does not exist or is not readable by you\n";
exit;