Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.8.3
-
None
-
Version: 3.8.3
PHP Version:
Webserver:
Database:
Description
function &elementsByName( $name ) { return $this->NamedNodes[$name]; }
What if there were no elements with the name $name? This would be better:
function &elementsByName( $name ) { $return = array(); if ( array_key_exists( $name, $this->NamedNodes ) ) { $return =& $this->NamedNodes[$name]; } return $return; }