add flag for json_decode to return associative array
This commit is contained in:
parent
af0c34e64b
commit
4bc642903a
|
@ -17,7 +17,7 @@ if ($virtualhost == "") {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_readable("/var/vmail/$virtualhost/.exp/roundcubemail.json")) {
|
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 {
|
} else {
|
||||||
echo "$virtualhost roundcubemail file does not exist or is not readable by you\n";
|
echo "$virtualhost roundcubemail file does not exist or is not readable by you\n";
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user