mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-11 14:28:40 +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();
|
||||
|
||||
++$i;
|
||||
} while (\file_exists($path . '/' . $filename) && $i < 10000);
|
||||
} while (\is_file($path . '/' . $filename) && $i < 10000);
|
||||
|
||||
// protection against infinite loop
|
||||
if ($i >= 10000) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user