Merge pull request #5340 from senky/ticket/15744

[ticket/15744] Remove useless sql_freeresults
This commit is contained in:
Derk 2018-09-15 13:04:14 +02:00 committed by GitHub
commit b0497a613c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,13 +74,11 @@ class remove_attachment_flash extends \phpbb\db\migration\migration
WHERE ' . $this->db->sql_in_set('group_id', $group_ids);
}
$result = $this->db->sql_query($sql);
$this->db->sql_freeresult($result);
$this->db->sql_query($sql);
// delete the now empty, outdated media extension groups
$sql = 'DELETE FROM ' . EXTENSION_GROUPS_TABLE . '
WHERE ' . $this->db->sql_in_set('group_id', $group_ids);
$result = $this->db->sql_query($sql);
$this->db->sql_freeresult($result);
$this->db->sql_query($sql);
}
}