diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 0b46520fc..d62710971 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -4550,16 +4550,19 @@ var_dump($select_options);*/ public function columnSelector($columnsArray, $columnsDefault = array(), $id = 'column_options') { $columnsArray = array_filter($columnsArray); + $tabs = []; - try + if($adminUI = e107::getAdminUI()) { - $tabs = e107::getAdminUI()->getController()->getTabs(); + try + { + $tabs = $adminUI->getController()->getTabs(); + } + catch (Exception $e) + { + // do something + } } - catch (Exception $e) - { - // do something - } - // navbar-header nav-header