mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #1912 from marc1706/ticket/12058
[ticket/12058] Add missing apostrophe to avatar_types migration queries
This commit is contained in:
commit
e3a0540fa6
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class avatar_types extends \phpbb\db\migration\migration
|
|||
{
|
||||
$sql = 'UPDATE ' . $this->table_prefix . "users
|
||||
SET user_avatar_type = '$new'
|
||||
WHERE user_avatar_type = $old";
|
||||
WHERE user_avatar_type = '$old'";
|
||||
$this->db->sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class avatar_types extends \phpbb\db\migration\migration
|
|||
{
|
||||
$sql = 'UPDATE ' . $this->table_prefix . "groups
|
||||
SET group_avatar_type = '$new'
|
||||
WHERE group_avatar_type = $old";
|
||||
WHERE group_avatar_type = '$old'";
|
||||
$this->db->sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue