Skip to content
Snippets Groups Projects
Commit 40fcda7c authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix infinite loop when system if offline due to pending upgrade

parent 03a84301
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require_once('client.inc.php');
if($cfg && !$cfg->isHelpDeskOffline()) {
if(is_object($ost) && $ost->isSystemOnline()) {
@header('Location: index.php'); //Redirect if the system is online.
include('index.php');
exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment