[Mapbender-commits] r5864 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Apr 2 01:18:35 EDT 2010


Author: mifan
Date: 2010-04-02 01:18:35 -0400 (Fri, 02 Apr 2010)
New Revision: 5864

Modified:
   trunk/mapbender/http/php/mod_loadCatalog.php
Log:
handle sql error when trying to insert empty values to DB

Modified: trunk/mapbender/http/php/mod_loadCatalog.php
===================================================================
--- trunk/mapbender/http/php/mod_loadCatalog.php	2010-04-02 05:17:15 UTC (rev 5863)
+++ trunk/mapbender/http/php/mod_loadCatalog.php	2010-04-02 05:18:35 UTC (rev 5864)
@@ -32,8 +32,10 @@
 $catalog = new csw();
 $catalog->createCatObjFromXML($cat_xml_url);
 
-$catalog->setCatObjToDB($gui_list);
+if($catalog->cat_status){
+	$catalog->setCatObjToDB($gui_list);
 
-//Display Catalog data
-$catalog->displayCatalog();
+	//Display Catalog data
+	$catalog->displayCatalog();
+}
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list