From c1f91c47949e3771996ff1e94c14c9c3ba8e33be Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Wed, 23 Sep 2015 19:38:28 +0000 Subject: static/upload.php: Use strict comparison for $tries --- static/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/upload.php b/static/upload.php index 0504e54..d14fee7 100644 --- a/static/upload.php +++ b/static/upload.php @@ -41,7 +41,7 @@ function generate_name($file) do { // Iterate until we reach the maximum number of retries - if ($tries-- == 0) { + if ($tries-- === 0) { throw new Exception('Gave up trying to find an unused name', 500); } -- cgit v1.2.3