From: Roland Haeder Date: Mon, 25 Jan 2016 16:06:04 +0000 (+0100) Subject: StartMakeEntryForm must allow NULL for $form parameter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9077e3cea57c405325e3ebf0eaf1258fae2d0216;p=quix0rs-gnu-social.git StartMakeEntryForm must allow NULL for $form parameter Signed-off-by: Roland Haeder --- diff --git a/lib/microappplugin.php b/lib/microappplugin.php index 8fd49e04f5..93e1c6c088 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -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); diff --git a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php index 8f4dd008d6..a9e7de3641 100644 --- a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php +++ b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php @@ -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)) {