mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/15699] Check if is resource before close
PHPBB3-15699
This commit is contained in:
@@ -189,7 +189,11 @@ class acp_storage
|
||||
|
||||
$stream = $current_adapter->read_stream($row['file_path']);
|
||||
$new_adapter->write_stream($row['file_path'], $stream);
|
||||
fclose($stream);
|
||||
|
||||
if (is_resource($stream))
|
||||
{
|
||||
fclose($stream);
|
||||
}
|
||||
|
||||
$this->state['file_index'] = $row['file_id']; // Set last uploaded file
|
||||
}
|
||||
|
Reference in New Issue
Block a user