cvs: pear /HTML_Template_Xipe/Xipe/Filter Modifier.php

From: Date: Sat, 18 Jan 2003 15:28:49 +0000
Subject: cvs: pear /HTML_Template_Xipe/Xipe/Filter Modifier.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8372@lists.php.net to get a copy of this message
cain Sat Jan 18 10:28:49 2003 EDT Modified files: /pear/HTML_Template_Xipe/Xipe/Filter Modifier.php Log: - prevent E_ALL warnings Index: pear/HTML_Template_Xipe/Xipe/Filter/Modifier.php diff -u pear/HTML_Template_Xipe/Xipe/Filter/Modifier.php:1.6 pear/HTML_Template_Xipe/Xipe/Filter/Modifier.php:1.7 --- pear/HTML_Template_Xipe/Xipe/Filter/Modifier.php:1.6 Fri Jan 10 08:21:51 2003 +++ pear/HTML_Template_Xipe/Xipe/Filter/Modifier.php Sat Jan 18 10:28:38 2003 @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ -// $Id: Modifier.php,v 1.6 2003/01/10 13:21:51 cain Exp $ +// $Id: Modifier.php,v 1.7 2003/01/18 15:28:38 cain Exp $ // require_once 'HTML/Template/Xipe/Options.php'; @@ -98,7 +98,7 @@ // go thru all the images we have found and find their path foreach( $images[1] as $aImage) { - if( $this->_imgFiles[$aImage] ) + if( isset($this->_imgFiles[$aImage]) && $this->_imgFiles[$aImage] ) $found[$aImage] = $this->_imgFiles[$aImage]; else { @@ -108,7 +108,7 @@ // using pathinfo returns also the file's extension $fileInfo = pathinfo($aImage); // if there is an extension we assume that this one is used - $_imgTypes = $fileInfo['extension'] ? array('') : $imgTypes; + $_imgTypes = isset($fileInfo['extension']) && $fileInfo['extension'] ? array('') : $imgTypes; foreach( $_imgTypes as $aType ) // if no file extension given loop through all possible imgTypes { $aType = $aType ? ".$aType" : '';

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