From 4bc642903abf3a64a127239ec11b724e96a12f89 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 14 Mar 2023 15:46:29 -0700 Subject: [PATCH] add flag for json_decode to return associative array --- bin/vmail-roundcubemail-settings-import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vmail-roundcubemail-settings-import.php b/bin/vmail-roundcubemail-settings-import.php index 14c4fbd..1c2f84b 100755 --- a/bin/vmail-roundcubemail-settings-import.php +++ b/bin/vmail-roundcubemail-settings-import.php @@ -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;