[Mapbender-commits] r1110 - trunk/mapbender/http/extensions

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Feb 9 09:13:18 EST 2007


Author: christoph
Date: 2007-02-09 09:13:18 -0500 (Fri, 09 Feb 2007)
New Revision: 1110

Modified:
   trunk/mapbender/http/extensions/geom2wfst.php
Log:
changed error detection for wfs-t

Modified: trunk/mapbender/http/extensions/geom2wfst.php
===================================================================
--- trunk/mapbender/http/extensions/geom2wfst.php	2007-02-09 14:11:32 UTC (rev 1109)
+++ trunk/mapbender/http/extensions/geom2wfst.php	2007-02-09 14:13:18 UTC (rev 1110)
@@ -99,6 +99,12 @@
 	$e = new mb_exception('WFS successfull host: '.$host.' port: '.$port.' filter: '.$_REQUEST["filter"]);
 }
 */
-header('Content-type: text/xml');  
-echo $data;
+if (stristr($data, "success") !== false) {
+	$response = "success";
+}
+else {
+	$response = "error";
+}
+header('Content-type: text/html');  
+echo $response;
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list