mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/15342] Check if is resource before close it
PHPBB3-15342
This commit is contained in:
@@ -187,7 +187,10 @@ class acp_database
|
||||
|
||||
$storage->write_stream($file, $fp);
|
||||
|
||||
fclose($fp);
|
||||
if (is_resource($fp))
|
||||
{
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
$storage->track_file($file);
|
||||
|
||||
|
Reference in New Issue
Block a user