OSDN Git Service

- fixed bug Ethna_ActionError#_getActionForm method emits E_NOTICE.
authormumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 8 Oct 2008 19:54:07 +0000 (19:54 +0000)
committermumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 8 Oct 2008 19:54:07 +0000 (19:54 +0000)
CHANGES
class/Ethna_ActionError.php

diff --git a/CHANGES b/CHANGES
index a5993ef..b784126 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -42,6 +42,7 @@
 - Ethna_MailSender にてメールを送信する際、テンプレートが存在しなかった場合にも空メールを送ってしまうバグを修正 (thanks: ryosuke@sekido.info -> [ethna-users:1053])
 - smarty_modifier_checkbox が仕様に反する動作をしていたバグを修正し、仕様を厳密化した(thanks: maru_cc)
 -- checked が付くのはスカラーで、0 と空文字列、null, false 以外の場合とする 
+- Ethna_ActionError#_getActionForm で、E_NOTICE が出る問題を回避
 
 ** 2.5.0-preview1
 
index e3fb4b0..56560f5 100644 (file)
@@ -199,7 +199,7 @@ class Ethna_ActionError
      */
     function &_getActionForm()
     {
-        if (is_null($this->action_form)) {
+        if (isset($this->action_form) == false) {
             $controller =& Ethna_Controller::getInstance();
             $this->action_form =& $controller->getActionForm();
         }