mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
Remove duplicate init for isOnline
This commit is contained in:
parent
7aed881f08
commit
5424424eaf
@ -47,14 +47,12 @@ class HomeController extends AbstractController
|
||||
public function dashboardAction(Request $request)
|
||||
{
|
||||
$operator = $this->getOperator();
|
||||
$is_online = is_operator_online($operator['operatorid']);
|
||||
|
||||
$page = array(
|
||||
'version' => MIBEW_VERSION,
|
||||
'localeLinks' => get_locale_links(),
|
||||
'needUpdate' => version_compare(Settings::get('dbversion'), MIBEW_VERSION, '<'),
|
||||
'profilePage' => $this->generateUrl('operator_edit', array('operator_id' => $operator['operatorid'])),
|
||||
'isOnline' => $is_online,
|
||||
'warnOffline' => true,
|
||||
'title' => getlocal('Home'),
|
||||
'menuid' => 'main',
|
||||
|
Loading…
Reference in New Issue
Block a user