summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorichdasich <ichdasich@29ba0400-6e00-0410-a75a-ca02368028f8>2008-12-14 01:03:32 +0000
committerichdasich <ichdasich@29ba0400-6e00-0410-a75a-ca02368028f8>2008-12-14 01:03:32 +0000
commit5c8991ed5d0c03469318a8f3fac0748b7d8b89d8 (patch)
tree54c098c3062436efb7644d23319df23e911a6d69
parentf22f5194e2ae9712dc34ebf8ec88ca3eb6816a15 (diff)
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
-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;
}
/*#######################################################################################*/