[pLog-svn] r2928 - plog/trunk/class/net/http/session
mark at devel.lifetype.net
mark at devel.lifetype.net
Tue Feb 7 14:23:55 GMT 2006
Author: mark
Date: 2006-02-07 14:23:55 +0000 (Tue, 07 Feb 2006)
New Revision: 2928
Modified:
plog/trunk/class/net/http/session/sessionmanager.class.php
Log:
Change if( $xxx =="" ) to if( empty($xxx) ), It will reduce some PHP5 notice.
Modified: plog/trunk/class/net/http/session/sessionmanager.class.php
===================================================================
--- plog/trunk/class/net/http/session/sessionmanager.class.php 2006-02-07 10:40:00 UTC (rev 2927)
+++ plog/trunk/class/net/http/session/sessionmanager.class.php 2006-02-07 14:23:55 UTC (rev 2928)
@@ -44,7 +44,7 @@
// if there is no session object, we better create one
//
$session = HttpVars::getSession();
- if( !array_key_exists("SessionInfo", $session) || $session["SessionInfo"] == "" ) {
+ if( !array_key_exists("SessionInfo", $session) || empty($session["SessionInfo"]) ) {
$session["SessionInfo"] = new SessionInfo();
HttpVars::setSession( $session );
}
More information about the pLog-svn
mailing list