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:
parent
f22f5194e2
commit
5c8991ed5d
|
@ -143,12 +143,14 @@ 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;
|
||||
// die;
|
||||
}
|
||||
|
||||
/*#######################################################################################*/
|
||||
|
|
Loading…
Reference in New Issue