Changed acp_portal submit part so we can run custom function on submit without the need to have the type 'custom'

This commit is contained in:
Marc Alexander
2011-01-09 21:35:06 +00:00
parent 3f1cd43acf
commit 9ce0695824

View File

@@ -156,7 +156,7 @@ class acp_portal
// We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to...
foreach ($display_vars['vars'] as $config_name => $null)
{
if ($submit && $null['type'] == 'custom')
if ($submit && isset($null['submit']))
{
$func = array($c_class, $null['submit']);
$args = ($module_id != 0) ? array($config_name, $module_id) : $config_name;