Db: no transaction for settings
This commit is contained in:
parent
c0ee54b81c
commit
22918f99b1
|
@ -79,7 +79,6 @@ class Db extends DbConnection
|
||||||
public function storeSetting($name, $value)
|
public function storeSetting($name, $value)
|
||||||
{
|
{
|
||||||
$db = $this->db();
|
$db = $this->db();
|
||||||
$db->beginTransaction();
|
|
||||||
$updated = $db->update(
|
$updated = $db->update(
|
||||||
'director_setting',
|
'director_setting',
|
||||||
array('setting_value' => $value),
|
array('setting_value' => $value),
|
||||||
|
@ -96,7 +95,6 @@ class Db extends DbConnection
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->commit();
|
|
||||||
if ($this->settings !== null) {
|
if ($this->settings !== null) {
|
||||||
$this->settings[$name] = $value;
|
$this->settings[$name] = $value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue