Alan Lam пре 3 година
родитељ
комит
f4680c486c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/test_tester_form.php

+ 1 - 1
controllers/test_tester_form.php

@@ -120,7 +120,7 @@ if($submit) {
 					}
 					}
 
 
 					[$width, $height, $type] = $size;
 					[$width, $height, $type] = $size;
-					if(in_array($type, [IMAGETYPE_JPEG, IMAGETYPE_PNG])) {
+					if(!in_array($type, [IMAGETYPE_JPEG, IMAGETYPE_PNG])) {
 						throw new Exception(sprintf(__("The uploaded file for %s is not a JPEG or PNG."), $label));
 						throw new Exception(sprintf(__("The uploaded file for %s is not a JPEG or PNG."), $label));
 					}
 					}