further fixup for php5 in includes/funktion_xml.php, special thanks to mxey for this contribution

git-svn-id: svn://svn.cccv.de/engel-system@319 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
ichdasich 2008-12-14 01:03:32 +00:00
parent f22f5194e2
commit 5c8991ed5d
1 changed files with 7 additions and 5 deletions

View File

@ -143,9 +143,11 @@ function readXMLfile( $file )
/*#######################################################################################*/
function getXMLsubPease( $Sourse, $Name )
{
while(list($key, $value) = each($Sourse->sub))
if( $value->name == $Name)
foreach($Sourse->sub as $key => $value) {
if ($value->name == $Name) {
return $value;
}
}
echo "<h1>Fehler: getXMLsubPease( $Sourse, $Name ) not found</h1>";
// die;