From: Platonides Date: Fri, 4 Mar 2011 22:52:20 +0000 (+0000) Subject: If the unknown element is empty, there won't be a matching END_ELEMENT. There's nothi... X-Git-Tag: 1.31.0-rc.0~31645 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=97f843e93b97422eb8a2204de973f7208a3c454c;p=lhc%2Fweb%2Fwiklou.git If the unknown element is empty, there won't be a matching END_ELEMENT. There's nothing to peek inside. --- diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 7253a06ccd..967d671fb4 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -161,10 +161,13 @@ class SVGReader { * @param String $name of the element that we are reading from */ private function animateFilter( $name ) { - $this->debug ( "animate filter" ); + $this->debug ( "animate filter for tag $name" ); if( $this->reader->nodeType != XmlReader::ELEMENT ) { return; } + if ( $this->reader->isEmptyElement ) { + return; + } $exitDepth = $this->reader->depth; $keepReading = $this->reader->read(); while( $keepReading ) {