From 5e8bc99697e430def79d608a8d16b5c4b83c9437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Mon, 2 Jul 2018 03:34:14 +0200 Subject: [PATCH] [ticket/15699] Move line PHPBB3-15699 --- phpBB/includes/acp/acp_storage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/acp/acp_storage.php b/phpBB/includes/acp/acp_storage.php index f9e0e75ae0..8a027e4b07 100644 --- a/phpBB/includes/acp/acp_storage.php +++ b/phpBB/includes/acp/acp_storage.php @@ -177,10 +177,10 @@ class acp_storage fclose($stream); } - $this->db->sql_rowseek(0, $result); - if ($this->request->variable('remove_old', false)) { + $this->db->sql_rowseek(0, $result); + while ($row = $this->db->sql_fetchrow($result)) { $current_adapter->delete($row['file_path']);