[ticket/12058] Add missing apostrophe to avatar_types migration queries

PHPBB3-12058
This commit is contained in:
Marc Alexander 2013-12-04 23:40:38 +01:00
parent 1d243b78bb
commit 53be0a4432

View file

@ -42,7 +42,7 @@ class avatar_types extends \phpbb\db\migration\migration
{ {
$sql = 'UPDATE ' . $this->table_prefix . "users $sql = 'UPDATE ' . $this->table_prefix . "users
SET user_avatar_type = '$new' SET user_avatar_type = '$new'
WHERE user_avatar_type = $old"; WHERE user_avatar_type = '$old'";
$this->db->sql_query($sql); $this->db->sql_query($sql);
} }
} }
@ -53,7 +53,7 @@ class avatar_types extends \phpbb\db\migration\migration
{ {
$sql = 'UPDATE ' . $this->table_prefix . "groups $sql = 'UPDATE ' . $this->table_prefix . "groups
SET group_avatar_type = '$new' SET group_avatar_type = '$new'
WHERE group_avatar_type = $old"; WHERE group_avatar_type = '$old'";
$this->db->sql_query($sql); $this->db->sql_query($sql);
} }
} }