[pLog-svn] r2867 - plog/trunk/class/view

mark at devel.lifetype.net mark at devel.lifetype.net
Sun Jan 29 18:15:14 GMT 2006


Author: mark
Date: 2006-01-29 18:15:13 +0000 (Sun, 29 Jan 2006)
New Revision: 2867

Modified:
   plog/trunk/class/view/view.class.php
Log:
Fix a bug of setSessionValue, we have to assign $session from getSession first, or we will always get false.

Modified: plog/trunk/class/view/view.class.php
===================================================================
--- plog/trunk/class/view/view.class.php	2006-01-29 17:12:01 UTC (rev 2866)
+++ plog/trunk/class/view/view.class.php	2006-01-29 18:15:13 UTC (rev 2867)
@@ -245,11 +245,12 @@
 		 */
 		function setSessionValue( $param, $value )
 		{
+			$session = HttpVars::getSession();
+
             // if there is no session data, there's nothing for us to set
             if( !is_array( $session )) 
                 return false;		
 		
-			$session = HttpVars::getSession();
 			$viewName = get_class( $this );
 			$keyName = "{$viewName}_{$param}";
 			$session["$keyName"] = $value;



More information about the pLog-svn mailing list