cvs: pear /Image_Transform/Driver IM.php

From: Date: Tue, 29 Oct 2002 09:59:27 +0000
Subject: cvs: pear /Image_Transform/Driver IM.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7229@lists.php.net to get a copy of this message
tuupola Tue Oct 29 04:59:27 2002 EDT Modified files: /pear/Image_Transform/Driver IM.php Log: * fix broken ternary operator in save() Index: pear/Image_Transform/Driver/IM.php diff -u pear/Image_Transform/Driver/IM.php:1.13 pear/Image_Transform/Driver/IM.php:1.14 --- pear/Image_Transform/Driver/IM.php:1.13 Thu Oct 24 10:13:47 2002 +++ pear/Image_Transform/Driver/IM.php Tue Oct 29 04:59:26 2002 @@ -15,7 +15,7 @@ // | Authors: Peter Bowyer <peter@mapledesign.co.uk> | // +----------------------------------------------------------------------+ // -// $Id: IM.php,v 1.13 2002/10/24 14:13:47 tuupola Exp $ +// $Id: IM.php,v 1.14 2002/10/29 09:59:26 tuupola Exp $ // // Image Transformation interface using command line ImageMagick // @@ -183,7 +183,7 @@ */ function save($filename, $type='', $quality = 75) { - $type == '' ? $this->type : $type; + $type = $type ? $type : $this->type; $cmd = 'ulimit;' . IMAGE_TRANSFORM_LIB_PATH . 'convert ' . implode(' ', $this->command) . " -flatten -quality $quality " .

« previous php.pear.cvs (#7229) next »