From d40bda0e08ee3e63dd97ec1aa50bf6e15246c575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Thu, 21 Jun 2018 05:11:31 +0200 Subject: [PATCH] [ticket/15692] Modify condition PHPBB3-15692 --- phpBB/phpbb/storage/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /**