summaryrefslogtreecommitdiff
path: root/static/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'static/upload.php')
-rw-r--r--static/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/upload.php b/static/upload.php
index 3d90a4f..655dd9c 100644
--- a/static/upload.php
+++ b/static/upload.php
@@ -64,7 +64,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);
}