[Mapbender-commits] r4795 - branches/2.6/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Oct 20 06:06:06 EDT 2009
Author: christoph
Date: 2009-10-20 06:06:05 -0400 (Tue, 20 Oct 2009)
New Revision: 4795
Modified:
branches/2.6/http/php/mb_validateSession.php
Log:
avoid PHP notices
Modified: branches/2.6/http/php/mb_validateSession.php
===================================================================
--- branches/2.6/http/php/mb_validateSession.php 2009-10-20 10:05:39 UTC (rev 4794)
+++ branches/2.6/http/php/mb_validateSession.php 2009-10-20 10:06:05 UTC (rev 4795)
@@ -38,13 +38,13 @@
//
// set the global var gui_id
//
-if (!$gui_id) {
+if (!isset($gui_id)) {
$e = new mb_notice("gui id not set");
- if ($_REQUEST["guiID"]) {
+ if (isset($_REQUEST["guiID"])) {
$gui_id = $_REQUEST["guiID"];
$e = new mb_notice("gui id set to guiID: " . $gui_id);
}
- elseif ($_REQUEST["gui_id"]) {
+ elseif (isset($_REQUEST["gui_id"])) {
$gui_id = $_REQUEST["gui_id"];
$e = new mb_notice("gui id set to gui_id: " . $gui_id);
}
@@ -56,7 +56,7 @@
//
// set the global var e_id
//
-if (!$e_id) {
+if (!isset($e_id)) {
if (isset($_REQUEST["elementID"])) {
$e_id = $_REQUEST["elementID"];
}
@@ -81,4 +81,4 @@
$self = $_SERVER["PHP_SELF"] . "?" . $urlParameters;
$e = new mb_notice("mb_validateSession.php: GUI: " . $gui_id . ", checking file " . $_SERVER["PHP_SELF"] . "...session valid.");
-?>
\ No newline at end of file
+?>
More information about the Mapbender_commits
mailing list