summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/funktion_xml.php12
1 files changed, 7 insertions, 5 deletions
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 "<h1>Fehler: getXMLsubPease( $Sourse, $Name ) not found</h1>";
-// die;
+// die;
}
/*#######################################################################################*/