From ba7e22f8d9894ea98d57d96e1cbccdc25fe900d7 Mon Sep 17 00:00:00 2001 From: edward Date: Fri, 10 Nov 2017 10:35:29 +0800 Subject: [PATCH] Images.php --- Images.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Images.php b/Images.php index 14917ac8..a475fb38 100644 --- a/Images.php +++ b/Images.php @@ -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); -- 2.39.2