summaryrefslogtreecommitdiff
path: root/inc/funktion_xml.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-10-21 17:07:51 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-10-21 17:07:51 +0000
commit1c8b0b3784cf5614652f5207b3bee6bd6234b2f9 (patch)
tree0f94ab1641fb55655e46ff13c5b543fe50d8d05f /inc/funktion_xml.php
parentf315d1de76222dbf0fb3585727d2753f20513280 (diff)
ordendlicher abbruch bei fehlenden xml file
git-svn-id: svn://svn.cccv.de/engel-system@6 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'inc/funktion_xml.php')
-rwxr-xr-xinc/funktion_xml.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/funktion_xml.php b/inc/funktion_xml.php
index f740cfac..41a18503 100755
--- a/inc/funktion_xml.php
+++ b/inc/funktion_xml.php
@@ -107,7 +107,8 @@ function readXMLfile( $file )
xml_set_character_data_handler($xml_parser, "character_data_handler");
if (!($fp = fopen($file, "r")))
{
- die("could not open XML input");
+ echo(" <h1>could not open XML file \"$file\"</h1>");
+ return -1;
}
if( $XMLDEBUG) echo "<pre>";
@@ -122,6 +123,7 @@ function readXMLfile( $file )
}
if( $XMLDEBUG) echo "</pre>";
xml_parser_free($xml_parser);
+ return 0;
}
/*#######################################################################################*/
@@ -132,7 +134,7 @@ function getXMLsubPease( $Sourse, $Name )
return $value;
echo "<h1>Fehler: getXMLsubPease( $Sourse, $Name ) not found</h1>";
- die;
+// die;
}
?>