1
0
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:
Rubén Calvo
2018-06-21 04:56:25 +02:00
parent 9650763a19
commit d65e60d1a6
2 changed files with 13 additions and 3 deletions

View File

@@ -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)
{