소스 검색

Fix format check

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;
-					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));
 					}