Fix empty preferences array warning in the DbStore
This commit is contained in:
parent
993390941a
commit
c7f36a5afa
|
@ -128,7 +128,9 @@ class DbStore extends PreferencesStore
|
|||
if (! array_key_exists($section, $this->preferences)) {
|
||||
$this->preferences[$section] = array();
|
||||
}
|
||||
|
||||
if (! array_key_exists($section, $preferences)) {
|
||||
$preferences[$section] = array();
|
||||
}
|
||||
$toBeInserted = array_diff_key($preferences[$section], $this->preferences[$section]);
|
||||
if (!empty($toBeInserted)) {
|
||||
$this->insert($toBeInserted, $section);
|
||||
|
|
Loading…
Reference in New Issue