[Mapbender-commits] r2554 - trunk/mapbender/http/include
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 24 08:31:50 EDT 2008
Author: christoph
Date: 2008-06-24 08:31:50 -0400 (Tue, 24 Jun 2008)
New Revision: 2554
Modified:
trunk/mapbender/http/include/dyn_js.php
Log:
added exception if application id is not set
Modified: trunk/mapbender/http/include/dyn_js.php
===================================================================
--- trunk/mapbender/http/include/dyn_js.php 2008-06-24 12:31:10 UTC (rev 2553)
+++ trunk/mapbender/http/include/dyn_js.php 2008-06-24 12:31:50 UTC (rev 2554)
@@ -17,6 +17,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+require_once(dirname(__FILE__)."/../classes/class_mb_exception.php");
+
if(isset($gui_id))
{
$sql = "SELECT * FROM gui_element_vars WHERE fkey_e_id = $1 AND fkey_gui_id = $2 and var_type='var'";
@@ -47,4 +49,7 @@
}
}
}
-?>
\ No newline at end of file
+else {
+ $e = new mb_exception("Application ID not set while retrieving element vars of module " . $e_id);
+}
+?>
More information about the Mapbender_commits
mailing list