jqh %!s(int64=4) %!d(string=hai) anos
pai
achega
1581cc3341
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) ?: []);
     }
 
     /**