1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/9687] Some more code cleanup after code review

PHPBB3-9687
This commit is contained in:
Marc Alexander
2023-11-06 20:30:59 +01:00
parent 13361a3b4b
commit 58b777b51c
2 changed files with 4 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ class manager
// Prevent duplicate bans
$sql = 'DELETE FROM ' . $this->bans_table . "
WHERE ban_mode = '" . $this->db->sql_escape($mode) . "'
AND " . $this->db->sql_in_set('ban_item', $ban_items, false, true);
AND " . $this->db->sql_in_set('ban_item', $ban_items, false, true);
$this->db->sql_query($sql);
$insert_array = [];
@@ -468,7 +468,8 @@ class manager
{
// Delete stale bans
$sql = 'DELETE FROM ' . $this->bans_table . '
WHERE ban_end > 0 AND ban_end < ' . (int) time();
WHERE ban_end > 0
AND ban_end < ' . (int) time();
$this->db->sql_query($sql);
/** @var type_interface $type */