diff --git a/phpBB/phpbb/storage/storage.php b/phpBB/phpbb/storage/storage.php index 4a31f87e82..deab3b708a 100644 --- a/phpBB/phpbb/storage/storage.php +++ b/phpBB/phpbb/storage/storage.php @@ -155,7 +155,7 @@ class storage */ public function exists($path, $full_check = false) { - return ($this->is_tracked($path) && ($full_check ? $this->get_adapter()->exists($path) : true)); + return ($this->is_tracked($path) && !$full_check || $this->get_adapter()->exists($path)); } /**