mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
Db: do nothing on no setting change
This commit is contained in:
parent
684793ca6c
commit
d1aafd7a4a
@ -156,6 +156,10 @@ class Db extends DbConnection
|
|||||||
public function storeSetting($name, $value)
|
public function storeSetting($name, $value)
|
||||||
{
|
{
|
||||||
$db = $this->db();
|
$db = $this->db();
|
||||||
|
if ($this->getSetting($name) === $value) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
$updated = $db->update(
|
$updated = $db->update(
|
||||||
'director_setting',
|
'director_setting',
|
||||||
array('setting_value' => $value),
|
array('setting_value' => $value),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user