Remove E_NOTICE when saving image with pixlr

finfo_close is necessary when using finfo in procedural style
pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 8b2d6b9d1f
commit ad1a6933bf
  1. 2
      main/document/save_pixlr.php

@ -102,7 +102,7 @@ if ($content_type[0] != "image") {
//Verify that the file is an image. Fileinfo method
$finfo = new finfo(FILEINFO_MIME);
$current_mime = $finfo->buffer($contents);
finfo_close($finfo);
if (strpos($current_mime, 'image') === false) {
echo "Invalid mime type file";
exit;

Loading…
Cancel
Save