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:
parent
0083a44a20
commit
c4f2abb85c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user