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