[Mapbender-commits] r7645 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 24 09:30:10 EST 2011


Author: armin11
Date: 2011-02-24 06:30:10 -0800 (Thu, 24 Feb 2011)
New Revision: 7645

Modified:
   trunk/mapbender/lib/class_Mapbender_session.php
Log:
bugfix session class

Modified: trunk/mapbender/lib/class_Mapbender_session.php
===================================================================
--- trunk/mapbender/lib/class_Mapbender_session.php	2011-02-24 13:32:03 UTC (rev 7644)
+++ trunk/mapbender/lib/class_Mapbender_session.php	2011-02-24 14:30:10 UTC (rev 7645)
@@ -65,13 +65,14 @@
  	public function get($name){
  		$this->start();
  		if(isset($_SESSION[$name])){
- 			return $_SESSION[$name];
+			$sessionValue = $_SESSION[$name];
  		}
  		else{
  			new mb_warning("the sessionVariable: ".$name." is read but it's not set!'");
- 			return false;
+			$sessionValue = false;
  		}
  		session_write_close();
+		return $sessionValue;
  	}
  	
  	/**
@@ -81,13 +82,14 @@
  	public function exists ($name){
  		$this->start();
  		if(isset($_SESSION[$name])){
- 			return true;
+			$sessionExists = true;
  		}
  		else{
  			new mb_notice("exists(): The session variable: ".$name." is not set!'");
- 			return false;
+			$sessionExists = false;
  		}
  		session_write_close();
+		return $sessionExists;
  	}
  	
  	/**



More information about the Mapbender_commits mailing list