mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-17 07:28:39 +00:00
fix tests and replace file_exists
This commit is contained in:
parent
a8d4c09950
commit
d4168a4ef5
|
|
@ -94,7 +94,7 @@ final class ApiController extends Controller
|
||||||
$rnd = \mt_rand();
|
$rnd = \mt_rand();
|
||||||
|
|
||||||
++$i;
|
++$i;
|
||||||
} while (\file_exists($path . '/' . $filename) && $i < 10000);
|
} while (\is_file($path . '/' . $filename) && $i < 10000);
|
||||||
|
|
||||||
// protection against infinite loop
|
// protection against infinite loop
|
||||||
if ($i >= 10000) {
|
if ($i >= 10000) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user