From c4f2abb85c921b1d9f8cf7cacc28d7169b9ef05b Mon Sep 17 00:00:00 2001 From: camer0n Date: Fri, 26 Jul 2024 13:08:01 -0700 Subject: [PATCH] Fixes #5271 Poll fatal error. --- e107_handlers/form_handler.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 0b46520fc6..d627109719 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -4550,17 +4550,20 @@ protected function _default_options($type) public function columnSelector($columnsArray, $columnsDefault = array(), $id = 'column_options') { $columnsArray = array_filter($columnsArray); + $tabs = []; - try + if($adminUI = e107::getAdminUI()) { - $tabs = e107::getAdminUI()->getController()->getTabs(); - } - catch (Exception $e) - { - // do something + try + { + $tabs = $adminUI->getController()->getTabs(); + } + catch (Exception $e) + { + // do something + } } - // navbar-header nav-header // navbar-header nav-header