diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index daa5391f8..6de968b6f 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -2946,30 +2946,30 @@ class AdminControllerCore extends Controller 'text' => $this->translationsTab['Delete'], 'cond' => true, ), - ); - $return = ''; - foreach($modules_options as $option_name => $option) - { - if ($option['cond']) - { - if ($output_type == 'link') - $return .= ' - '.$option['text'].' - '; - else if ($output_type == 'select') - $return .= ''; - } - } - if ($output_type == 'select') - { - if (!$module->id) - $return = ''.$return; - else - $return = ''.$return; - $return = ''; + ); + $return = ''; + foreach ($modules_options as $option_name => $option) + { + if ($option['cond']) + { + if ($output_type == 'link') + $return .= ' + '.$option['text'].' + '; + elseif ($output_type == 'select') + $return .= ''; } - + } + if ($output_type == 'select') + { + if (!$module->id) + $return = ''.$return; + else + $return .= ''; + $return = ''; + } + return $return; } } \ No newline at end of file