cvs: pear /XML_RSS RSS.php

From: Date: Fri, 05 Nov 2004 17:09:36 +0000
Subject: cvs: pear /XML_RSS RSS.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-25709@lists.php.net to get a copy of this message
mj Fri Nov 5 12:09:36 2004 EDT Modified files: /pear/XML_RSS RSS.php Log: * Only call XML_Parser() without arguments if $srcenc and $tgtenc are not set. http://cvs.php.net/diff.php/pear/XML_RSS/RSS.php?r1=1.23&r2=1.24&ty=u Index: pear/XML_RSS/RSS.php diff -u pear/XML_RSS/RSS.php:1.23 pear/XML_RSS/RSS.php:1.24 --- pear/XML_RSS/RSS.php:1.23 Fri Nov 5 12:02:10 2004 +++ pear/XML_RSS/RSS.php Fri Nov 5 12:09:33 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: RSS.php,v 1.23 2004/11/05 17:02:10 mj Exp $ +// $Id: RSS.php,v 1.24 2004/11/05 17:09:33 mj Exp $ // require_once 'XML/Parser.php'; @@ -30,7 +30,7 @@ * website of the RSS working group (http://www.purl.org/rss/). * * @author Martin Jansen <mj@php.net> -* @version $Revision: 1.23 $ +* @version $Revision: 1.24 $ * @access public */ class XML_RSS extends XML_Parser @@ -144,7 +144,7 @@ */ function XML_RSS($handle = '', $srcenc = null, $tgtenc = null) { - if ($srcenc === null) { + if ($srcenc === null && $tgtenc === null) { $this->XML_Parser(); } else { $this->XML_Parser($srcenc, 'event', $tgtenc);

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