diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-23 21:38:28 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-23 21:41:07 +0200 |
| commit | c1f91c47949e3771996ff1e94c14c9c3ba8e33be (patch) | |
| tree | e2f89750dce694a622e15164524dd91a0f22688a /static | |
| parent | 6afdfc24deb2d352e06189900d97d0500a40c7c4 (diff) | |
static/upload.php: Use strict comparison for $tries
Diffstat (limited to 'static')
| -rw-r--r-- | static/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
