Explorar o código

Fix format check

Alan Lam %!s(int64=3) %!d(string=hai) anos
pai
achega
f4680c486c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
-					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));
 					}