OSDN Git Service

FIX: PHP5/MySQL5における文法違反コードの修正
[nucleus-jp/nucleus-jp-ancient.git] / nucleus / libs / ACTION.php
index c526722..8be8d4e 100755 (executable)
@@ -232,7 +232,11 @@ class ACTION
                // let plugins do verification (any plugin which thinks the comment is invalid
                // can change 'error' to something other than '')
                $result = '';
-               $manager->notify('ValidateForm', array('type' => 'membermail', 'error' => &$result) );
+               $param = array(
+                       'type'  => 'membermail',
+                       'error' => &$result
+               );
+               $manager->notify('ValidateForm', $param);
 
                return $result;
 
@@ -253,9 +257,12 @@ class ACTION
 
                // evaluate content from FormExtra
                $result = 1;
-               $data = array('type' => 'membermail', 'error' => &$result);
-               $manager->notify('ValidateForm', &$data);
-
+               $param = array(
+                       'type'  => 'membermail',
+                       'error' => &$result
+               );
+               $manager->notify('ValidateForm', $param);
+               
                if ( $result != 1 )\r
                {
                        return $result;
@@ -280,8 +287,9 @@ class ACTION
                        $newmem = new MEMBER();
                        $newmem->readFromName($name);
                        $newmem->sendActivationLink('register');
-
-                       $manager->notify('PostRegister', array('member' => &$newmem) );
+                       
+                       $param = array('member' => &$newmem);
+                       $manager->notify('PostRegister', $param);
 
                        if ( postVar('desturl') )\r
                        {\r