1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Fixes #5271 Poll fatal error.

This commit is contained in:
camer0n 2024-07-26 13:08:01 -07:00
parent 0083a44a20
commit c4f2abb85c

View File

@ -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