]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
StartMakeEntryForm must allow NULL for $form parameter
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 16:06:04 +0000 (17:06 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 16:06:04 +0000 (17:06 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/microappplugin.php
plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php

index 8fd49e04f58be845237d54e2b601bf9445a0afdb..93e1c6c08898b35535b6750555694748d7e598dc 100644 (file)
@@ -130,7 +130,7 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin
         return true;
     }
 
-    function onStartMakeEntryForm($tag, Action $out, Form &$form)
+    function onStartMakeEntryForm($tag, Action $out, Form &$form=null)
     {
         if ($tag == $this->tag()) {
             $form = $this->entryForm($out);
index 8f4dd008d6b2f91d0752c4dccb3cd7eb51a5d582..a9e7de3641a4923e7e25fe99da2ddf54c79abd4a 100644 (file)
@@ -238,7 +238,7 @@ class RequireValidatedEmailPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onStartMakeEntryForm($tag, Action $action, Form &$form)
+    function onStartMakeEntryForm($tag, Action $action, Form &$form=null)
     {
         $user = common_current_user();
         if (!empty($user)) {