Index: trunk/phase3/includes/media/SVGMetadataExtractor.php |
— | — | @@ -161,10 +161,13 @@ |
162 | 162 | * @param String $name of the element that we are reading from |
163 | 163 | */ |
164 | 164 | private function animateFilter( $name ) { |
165 | | - $this->debug ( "animate filter" ); |
| 165 | + $this->debug ( "animate filter for tag $name" ); |
166 | 166 | if( $this->reader->nodeType != XmlReader::ELEMENT ) { |
167 | 167 | return; |
168 | 168 | } |
| 169 | + if ( $this->reader->isEmptyElement ) { |
| 170 | + return; |
| 171 | + } |
169 | 172 | $exitDepth = $this->reader->depth; |
170 | 173 | $keepReading = $this->reader->read(); |
171 | 174 | while( $keepReading ) { |