summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2016-06-19 23:21:35 +0200
committerEliot Whalan <ewhal@pantsu.cat>2016-06-19 23:21:35 +0200
commit4decebe30f04fb42d6f0182b5584067a5ae28f44 (patch)
treea29c01b59492a469902efdaf6b10dae05997bff7 /php
parentbe85d8aad3bf3483de9b8bc409337b7252e94059 (diff)
Fix constant variable error
Diffstat (limited to 'php')
-rw-r--r--php/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/upload.php b/php/upload.php
index 7ea89ff..118552e 100644
--- a/php/upload.php
+++ b/php/upload.php
@@ -84,7 +84,7 @@ function uploadFile($file)
if (!in_array(mime_content_type($file), $FILTER_MIME)) {
throw new UploadException(UPLOAD_ERR_EXTENSION);
}
- if $WHITELIST == true {
+ if WHITELIST == true {
if (!in_array(mime_content_type($file), $WHITELIST_MIME)) {
throw new UploadException(UPLOAD_ERR_EXTENSION);
}