From d4168a4ef521e96a63206565137f76463ed776d6 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 8 Oct 2020 15:12:24 +0200 Subject: [PATCH] fix tests and replace file_exists --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 89ca839..ed8857a 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -94,7 +94,7 @@ final class ApiController extends Controller $rnd = \mt_rand(); ++$i; - } while (\file_exists($path . '/' . $filename) && $i < 10000); + } while (\is_file($path . '/' . $filename) && $i < 10000); // protection against infinite loop if ($i >= 10000) {