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
main
ichdasich 16 years ago
parent f22f5194e2
commit 5c8991ed5d

@ -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;

Loading…
Cancel
Save