[Mapbender-commits] r7453 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jan 18 06:05:21 EST 2011
Author: apour
Date: 2011-01-18 03:05:21 -0800 (Tue, 18 Jan 2011)
New Revision: 7453
Modified:
trunk/mapbender/http/javascripts/initWmcObj.php
Log:
bugfix
Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php 2011-01-18 11:00:27 UTC (rev 7452)
+++ trunk/mapbender/http/javascripts/initWmcObj.php 2011-01-18 11:05:21 UTC (rev 7453)
@@ -65,8 +65,11 @@
$app = Mapbender::session()->get("mb_user_gui");
//$wmcDocSession = Mapbender::session()->get("mb_wmc");
-$wmc_filename = Mapbender::session()->get("mb_wmc");
-$wmcDocSession = file_get_contents($wmc_filename);
+$wmcDocSession = false;
+if(Mapbender::session()->get("mb_wmc")) {
+ $wmc_filename = Mapbender::session()->get("mb_wmc");
+ $wmcDocSession = file_get_contents($wmc_filename);
+}
try {
More information about the Mapbender_commits
mailing list