From 40fcda7c2557928f701c74910609fcab304690e8 Mon Sep 17 00:00:00 2001
From: Jared Hancock <gravydish@gmail.com>
Date: Fri, 22 Jun 2012 22:24:01 -0500
Subject: [PATCH] Fix infinite loop when system if offline due to pending
 upgrade

---
 offline.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/offline.php b/offline.php
index 24f8401a1..8c09a2001 100644
--- a/offline.php
+++ b/offline.php
@@ -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;
-- 
GitLab