1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 15:57:45 +02:00

Merge pull request #1912 from marc1706/ticket/12058

[ticket/12058] Add missing apostrophe to avatar_types migration queries
This commit is contained in:
Nathan Guse
2013-12-04 14:43:30 -08:00

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);
} }
} }