mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +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)
|
||||
{
|
||||
$db = $this->db();
|
||||
if ($this->getSetting($name) === $value) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$updated = $db->update(
|
||||
'director_setting',
|
||||
array('setting_value' => $value),
|
||||
|
Loading…
x
Reference in New Issue
Block a user