diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index 869847f6..d17bcc0e 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -344,7 +344,7 @@ class Info_amp extends CI_Controller //ι‡Šζ”Ύε†…ε­˜ imagedestroy($im); $size = getimagesize($path); - if($png_base64) { + if($png_base64 && $size) { echo(json_encode(array( 'status' => 'success', 'path' => '/information-view/from_word/'.$file, @@ -353,9 +353,7 @@ class Info_amp extends CI_Controller ))); } else { echo(json_encode(array( - 'status' => 'error', - 'width' => 0, - 'height' => 0 + 'status' => 'error' ))); } }