Skip to content

Commit

Permalink
Fixes #5271 Poll fatal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Jul 26, 2024
1 parent 0083a44 commit c4f2abb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4f2abb

Please sign in to comment.