Images.php
authoredward <edward@roojs.com>
Fri, 10 Nov 2017 02:35:29 +0000 (10:35 +0800)
committeredward <edward@roojs.com>
Fri, 10 Nov 2017 02:35:29 +0000 (10:35 +0800)
Images.php

index 14917ac..a475fb3 100644 (file)
@@ -302,7 +302,7 @@ class Pman_Core_Images extends Pman
             $this->validateSize();
         }
         
-        if(!empty($this->page)){
+        if(!empty($this->page) && $this->page * 1 > 0){
             $x->convert( $this->as_mimetype, $this->size, 0, $this->page);
         } else {
             $x->convert( $this->as_mimetype, $this->size);