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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user