mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15692] Fix exists condition and add more checks if file exists
PHPBB3-15692
This commit is contained in:
@@ -356,7 +356,7 @@ class local implements adapter_interface, stream_interface
|
||||
*/
|
||||
public function file_size($path)
|
||||
{
|
||||
$size = filesize($this->root_path . $this->get_path($path) . $this->get_filename($path));
|
||||
$size = @filesize($this->root_path . $this->get_path($path) . $this->get_filename($path));
|
||||
|
||||
if ($size === null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user