1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02: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') public function columnSelector($columnsArray, $columnsDefault = array(), $id = 'column_options')
{ {
$columnsArray = array_filter($columnsArray); $columnsArray = array_filter($columnsArray);
$tabs = [];
if($adminUI = e107::getAdminUI())
{
try try
{ {
$tabs = e107::getAdminUI()->getController()->getTabs(); $tabs = $adminUI->getController()->getTabs();
} }
catch (Exception $e) catch (Exception $e)
{ {
// do something // do something
} }
}
// navbar-header nav-header // navbar-header nav-header