From 5c8991ed5d0c03469318a8f3fac0748b7d8b89d8 Mon Sep 17 00:00:00 2001 From: ichdasich Date: Sun, 14 Dec 2008 01:03:32 +0000 Subject: 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 --- includes/funktion_xml.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'includes') 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 "

Fehler: getXMLsubPease( $Sourse, $Name ) not found

"; -// die; +// die; } /*#######################################################################################*/ -- cgit v1.2.3-70-g09d2