1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 00:50:30 +01:00

[ticket/15744] Remove useless sql_freeresults

PHPBB3-15744
This commit is contained in:
Jakub Senko 2018-09-13 17:49:24 +02:00
parent bd90a53589
commit 271c9d34dc
No known key found for this signature in database
GPG Key ID: 6A7C328CD66EC21E

View File

@ -85,13 +85,11 @@ class remove_outdated_media 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);
}
}