jqh 4 anni fa
parent
commit
1581cc3341
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Support/Setting.php

+ 1 - 1
src/Support/Setting.php

@@ -26,7 +26,7 @@ class Setting extends Fluent
             return [];
         }
 
-        return json_decode($value, true) ?: [];
+        return is_array($value) ? $value : (json_decode($value, true) ?: []);
     }
 
     /**