[Mapbender-commits] r3783 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Mar 17 13:16:35 EDT 2009


Author: christoph
Date: 2009-03-17 13:16:35 -0400 (Tue, 17 Mar 2009)
New Revision: 3783

Modified:
   trunk/mapbender/http/classes/class_wfsToDb.php
Log:
WFS update bug fix

Modified: trunk/mapbender/http/classes/class_wfsToDb.php
===================================================================
--- trunk/mapbender/http/classes/class_wfsToDb.php	2009-03-17 16:48:44 UTC (rev 3782)
+++ trunk/mapbender/http/classes/class_wfsToDb.php	2009-03-17 17:16:35 UTC (rev 3783)
@@ -299,6 +299,7 @@
 		if (!$res) {
 			// no configuration exists for this featuretype, 
 			// which is fine
+			$e = new mb_notice("No WFS conf found for this featuretype (Couldn't insert new feature type element in wfs_conf_element!)");
 			return true;
 		}
 		while ($row = db_fetch_array($res)) {
@@ -315,7 +316,9 @@
 			$resConfElement = db_prep_query($sqlConfElement, $v, $t);
 			$rowConfElement = db_fetch_array($resConfElement);
 			$count = $rowConfElement["cnt"];
-			if ($count === 0) {
+			if ($count === "0") {
+				$e = new mb_notice("Inserting this feature type element (" . 
+					$aWfsFeatureTypeElement->id . ") into WFS conf ($wfsConfId)");
 				// Insert featuretype element in wfs_conf_element
 				$sqlInsertConfElement = "INSERT INTO wfs_conf_element " . 
 					"(fkey_wfs_conf_id, f_id) VALUES ($1, $2)";
@@ -327,6 +330,11 @@
 					return false;
 				}
 			}
+			else {
+				$e = new mb_notice("This feature type element (" . 
+					$aWfsFeatureTypeElement->id . ") already exists in WFS conf ($wfsConfId)");
+
+			}
 		}
 		
 		return true;



More information about the Mapbender_commits mailing list