From: edward Date: Fri, 10 Nov 2017 02:39:11 +0000 (+0800) Subject: Images.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=dcb609a4381ec58f89339b7a9bb2f0ed2436fede Images.php --- diff --git a/Images.php b/Images.php index a475fb38..9635b828 100644 --- a/Images.php +++ b/Images.php @@ -302,7 +302,7 @@ class Pman_Core_Images extends Pman $this->validateSize(); } - if(!empty($this->page) && $this->page * 1 > 0){ + if(!empty($this->page) && is_nan($this->page * 1)){ $x->convert( $this->as_mimetype, $this->size, 0, $this->page); } else { $x->convert( $this->as_mimetype, $this->size);