1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Issue #2498 - Plugin Builder issue.

This commit is contained in:
Cameron 2017-03-07 17:39:04 -08:00
parent 533e63ddb4
commit 7d0deaf20e

View File

@ -4844,7 +4844,7 @@ TEMPLATE;
$addonResults = $this->createAddons($_POST['addons']);
}
// e107::getDebug()->log($_POST);
unset($_POST['step'],$_POST['xml'], $_POST['addons']);
$thePlugin = $tp->filter($_POST['newplugin'],'file');
@ -4869,12 +4869,11 @@ class ".$thePlugin."_adminArea extends e_admin_dispatcher
";
unset($_POST['newplugin']);
unset($_POST['newplugin'], $_POST['mode']);
foreach($_POST as $table => $vars) // LOOP Through Tables.
{
if(vartrue($vars['mode']) && $vars['mode'] != 'exclude')
if(!empty($vars['mode']) && $vars['mode'] != 'exclude')
{
$vars['mode'] = $tp->filter($vars['mode']);
@ -4908,7 +4907,7 @@ $text .= "
";
foreach($_POST as $table => $vars) // LOOP Through Tables.
{
if(vartrue($vars['mode']) && $vars['mode'] != 'exclude' && !empty($vars['table']))
if(!empty($vars['mode']) && $vars['mode'] != 'exclude' && !empty($vars['table']))
{
$vars['mode'] = $tp->filter($vars['mode']);