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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 27 05:46:40 EDT 2010


Author: verenadiewald
Date: 2010-04-27 05:46:38 -0400 (Tue, 27 Apr 2010)
New Revision: 6033

Modified:
   trunk/mapbender/http/classes/class_wmc.php
Log:
removed wmc_public from wmc update sql statement

Modified: trunk/mapbender/http/classes/class_wmc.php
===================================================================
--- trunk/mapbender/http/classes/class_wmc.php	2010-04-27 09:45:49 UTC (rev 6032)
+++ trunk/mapbender/http/classes/class_wmc.php	2010-04-27 09:46:38 UTC (rev 6033)
@@ -618,11 +618,11 @@
 				}
 	
 	            if($row = db_fetch_row($res)) {
-					$sql = "UPDATE mb_user_wmc SET wmc = $1, wmc_timestamp = $2, wmc_public = $3, abstract = $4, srs = $5, minx = $6, miny = $7,".
-						" maxx = $8, maxy = $9 WHERE fkey_user_id = $10 AND wmc_title=$11 AND wmc_timestamp = $12;";
-					$v = array($this->xml, time(), $user->isPublic()?1:0, $this->wmc_abstract, $this->wmc_srs, $this->wmc_extent->minx, $this->wmc_extent->minx,
+					$sql = "UPDATE mb_user_wmc SET wmc = $1, wmc_timestamp = $2, abstract = $3, srs = $4, minx = $5, miny = $6,".
+						" maxx = $7, maxy = $8 WHERE fkey_user_id = $9 AND wmc_title=$10 AND wmc_timestamp = $11;";
+					$v = array($this->xml, time(), $this->wmc_abstract, $this->wmc_srs, $this->wmc_extent->minx, $this->wmc_extent->minx,
 						 $this->wmc_extent->maxx, $this->wmc_extent->maxy ,$this->userId, administration::convertOutgoingString($this->wmc_title),$row[2]);
-					$t = array("s", "s","i","s","s","i","i","i","i", "i", "s","s");
+					$t = array("s", "s","s","s","i","i","i","i", "i", "s","s");
 					// need the database Id
 					$wmc_DB_ID = $row[3];
 					$delsql = "DELETE FROM wmc_md_topic_category WHERE fkey_wmc_id = $1;";



More information about the Mapbender_commits mailing list