mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
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)) {
|
if (! array_key_exists($section, $this->preferences)) {
|
||||||
$this->preferences[$section] = array();
|
$this->preferences[$section] = array();
|
||||||
}
|
}
|
||||||
|
if (! array_key_exists($section, $preferences)) {
|
||||||
|
$preferences[$section] = array();
|
||||||
|
}
|
||||||
$toBeInserted = array_diff_key($preferences[$section], $this->preferences[$section]);
|
$toBeInserted = array_diff_key($preferences[$section], $this->preferences[$section]);
|
||||||
if (!empty($toBeInserted)) {
|
if (!empty($toBeInserted)) {
|
||||||
$this->insert($toBeInserted, $section);
|
$this->insert($toBeInserted, $section);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user