Db: do nothing on no setting change

This commit is contained in:
Thomas Gelf 2016-03-24 13:23:41 +01:00
parent 684793ca6c
commit d1aafd7a4a

View File

@ -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),