jqh 4 years ago
parent
commit
1581cc3341
1 changed files with 1 additions and 1 deletions
  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) ?: []);
     }
 
     /**