[Mapbender-commits] r5954 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Apr 15 10:09:13 EDT 2010
Author: christoph
Date: 2010-04-15 10:09:13 -0400 (Thu, 15 Apr 2010)
New Revision: 5954
Modified:
trunk/mapbender/http/classes/class_wmc.php
Log:
public WMC were not found in SQL
Modified: trunk/mapbender/http/classes/class_wmc.php
===================================================================
--- trunk/mapbender/http/classes/class_wmc.php 2010-04-15 14:08:09 UTC (rev 5953)
+++ trunk/mapbender/http/classes/class_wmc.php 2010-04-15 14:09:13 UTC (rev 5954)
@@ -159,7 +159,7 @@
}
$this->createObjFromWMC_xml($doc);
$sql = "SELECT wmc_timestamp, wmc_title, wmc_public " .
- "FROM mb_user_wmc WHERE wmc_id = $1 AND fkey_user_id = $2";
+ "FROM mb_user_wmc WHERE wmc_id = $1 AND (fkey_user_id = $2 OR wmc_public = 1)";
$v = array($wmcId, Mapbender::session()->get("mb_user_id"));
$t = array("s", "i");
More information about the Mapbender_commits
mailing list