From f85de1ba5b83b847b0a91424123e0d5da3db54bd Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 12 Dec 2022 15:16:00 -0800 Subject: [PATCH] Issue #3701 Tweaked code output. --- e107_handlers/e_pluginbuilder_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/e_pluginbuilder_class.php b/e107_handlers/e_pluginbuilder_class.php index 49e97ad3f..3efefe0bf 100644 --- a/e107_handlers/e_pluginbuilder_class.php +++ b/e107_handlers/e_pluginbuilder_class.php @@ -1967,7 +1967,7 @@ class " . $pluginFolder . "_adminArea extends e_admin_dispatcher $vars['mode'] = $tp->filter($vars['mode']); $vars['pluginName'] = $tp->filter($vars['pluginName']); - $vars['table'] = $tp->filter($vars['table']); + $vars['table'] = !empty($var['table']) ? $tp->filter($vars['table']) : ''; $vars['pid'] = $tp->filter($vars['pid']); $FIELDS = $this->buildAdminUIFields($vars); @@ -2029,7 +2029,7 @@ class " . $table . " extends e_admin_ui $type = vartrue($val['type'], 'text'); $help = str_replace("'", '', vartrue($val['help'])); - $text .= "\t\t\t'" . $index . "'\t\t=> array('title'=> '" . ucfirst($index) . "', 'tab'=>0, 'type'=>'" . $tp->filter($type) . "', 'data' => 'str', 'help'=>'" . $tp->filter($help) . "', 'writeParms' => array()),\n"; + $text .= "\t\t\t'" . $index . "'\t\t=> array('title'=> '" . ucfirst($index) . "', 'tab'=>0, 'type'=>'" . $tp->filter($type) . "', 'data' => 'str', 'help'=>'" . $tp->filter($help) . "', 'writeParms' => []),\n"; } }