OSDN Git Service

fixd bug
authorcocoitiban <cocoitiban@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 8 Nov 2006 11:22:42 +0000 (11:22 +0000)
committercocoitiban <cocoitiban@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 8 Nov 2006 11:22:42 +0000 (11:22 +0000)
class/Plugin/Csrf/Ethna_Plugin_Csrf_Session.php

index 4d9523b..6540c8e 100644 (file)
@@ -57,7 +57,7 @@ class Ethna_Plugin_Csrf_Session extends Ethna_Plugin_Csrf
 
         $token = $this->session->get($this->token_name);
         if ($token === null) {
-            $token = array();
+            return true;
         }
 
         $key = $this->_generateKey();