diff --git a/includes/funktion_xml.php b/includes/funktion_xml.php index 12dbc254..8e911a4f 100755 --- a/includes/funktion_xml.php +++ b/includes/funktion_xml.php @@ -143,12 +143,14 @@ function readXMLfile( $file ) /*#######################################################################################*/ function getXMLsubPease( $Sourse, $Name ) { - while(list($key, $value) = each($Sourse->sub)) - if( $value->name == $Name) - return $value; - + foreach($Sourse->sub as $key => $value) { + if ($value->name == $Name) { + return $value; + } + } + echo "