1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fix forum post PHP error.

This commit is contained in:
Cameron
2021-10-18 16:41:51 -07:00
parent 573a8d55af
commit cf5459620c

View File

@@ -138,10 +138,10 @@ class plugin_forum_post_shortcodes extends e_shortcode
function sc_subjectbox()
{
global $subjectbox;
return $this->sc_forum_post_subject('boolean') ? e107::getParser()->parseTemplate($subjectbox, true, $this) : '';
return $this->sc_forum_post_subject(['return'=>'boolean']) ? e107::getParser()->parseTemplate($subjectbox, true, $this) : '';
}
function sc_forum_post_subject($parm=null)
function sc_forum_post_subject($parm=array())
{
$opts = empty($parm) ? array('size' => 'xlarge') : $parm;
@@ -164,7 +164,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
$opts['required'] = 1;
}
if($parm === 'boolean')
if(varset($parm['return']) === 'boolean')
{
return empty($opts['disabled']);
}