From bcc6ca48d57bf0737879d600b36a6a55de2c4f72 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 9 Aug 2013 21:45:22 +0000
Subject: [PATCH] Fix logo display in offline mode

---
 client.inc.php | 3 ++-
 offline.php    | 4 +---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/client.inc.php b/client.inc.php
index 6fe324bff..262b8680c 100644
--- a/client.inc.php
+++ b/client.inc.php
@@ -29,7 +29,8 @@ define('OSTCLIENTINC',TRUE);
 define('ASSETS_PATH',ROOT_PATH.'assets/default/');
 
 //Check the status of the HelpDesk.
-if(!is_object($ost) || !$ost->isSystemOnline()) {
+if (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])), array('logo.php',))
+        && !(is_object($ost) && $ost->isSystemOnline())) {
     include('./offline.php');
     exit;
 }
diff --git a/offline.php b/offline.php
index ca7654c71..04323f9e0 100644
--- a/offline.php
+++ b/offline.php
@@ -14,9 +14,7 @@
     vim: expandtab sw=4 ts=4 sts=4:
 **********************************************************************/
 require_once('client.inc.php');
-if(is_object($ost) && $ost->isSystemOnline()
-        && (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])),
-            array('logo.php',)))) {
+if(is_object($ost) && $ost->isSystemOnline()) {
     @header('Location: index.php'); //Redirect if the system is online.
     include('index.php');
     exit;
-- 
GitLab