[pLog-svn] r4336 - plugins/branches/lifetype-1.1/secret/class/security

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Nov 26 20:23:49 GMT 2006


Author: oscar
Date: 2006-11-26 20:23:49 +0000 (Sun, 26 Nov 2006)
New Revision: 4336

Modified:
   plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php
Log:
fixed one warning


Modified: plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php
===================================================================
--- plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php	2006-11-26 20:18:26 UTC (rev 4335)
+++ plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php	2006-11-26 20:23:49 UTC (rev 4336)
@@ -102,15 +102,17 @@
                 
                 // do we already have this information in the session?
                 $sessionKey = "article_".$articleId."_auth";
-                if( $session[ "$sessionKey" ] != "" ) {
+				if( isset( $session[ "$sessionKey"] )) {
+	                if( $session[ "$sessionKey" ] != "" ) {
 	
-                    // check if the information is correct
-                    if( $secretItems->authenticateItemHash( $articleId, $session[ "$sessionKey" ] )) {
-                        // if all correct, go ahead!
-                        $result = new PipelineResult( true );
-                        return $result;
-                    }
-                }
+	                    // check if the information is correct
+	                    if( $secretItems->authenticateItemHash( $articleId, $session[ "$sessionKey" ] )) {
+	                        // if all correct, go ahead!
+	                        $result = new PipelineResult( true );
+	                        return $result;
+	                    }
+	                }
+				}
                 
                 // if not, check if we are authenticating now...
                 if( $itemPassword != "" ) {



More information about the pLog-svn mailing list