Skip to content

Commit 851dd68

Browse files
authored
Only get defaults from config if key is not an array.
1 parent 64847e5 commit 851dd68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SettingStore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ abstract class SettingStore
4444
*/
4545
public function get($key, $default = null)
4646
{
47-
if ($default === NULL) {
48-
$default = Config::get('settings.defaults.'.$key);
49-
}
47+
if ($default === NULL && !is_array($key)) {
48+
$default = Config::get('settings.defaults.'.$key);
49+
}
5050

5151
$this->load();
5252

0 commit comments

Comments
 (0)