Fix bad balance of transaction
This commit is contained in:
parent
95032a8d1d
commit
54fea85105
1 changed files with 2 additions and 0 deletions
|
|
@ -1820,6 +1820,8 @@ class Website extends CommonObject
|
|||
*/
|
||||
public function setTemplateName($name_template)
|
||||
{
|
||||
$this->db->begin();
|
||||
|
||||
$sql = "UPDATE ".$this->db->prefix()."website SET";
|
||||
$sql .= " name_template = '".$this->db->escape($name_template)."'";
|
||||
$sql .= " WHERE rowid = ".(int) $this->id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue