[ticket/15699] Move line

PHPBB3-15699
This commit is contained in:
Rubén Calvo 2018-07-02 03:34:14 +02:00 committed by Ruben Calvo
parent fd2e4592c3
commit 5e8bc99697
No known key found for this signature in database

View file

@ -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']);