From b3a57a8f6f34d9668effb6ab9d254db5ff457401 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 18 Jun 2012 18:10:28 -0400
Subject: [PATCH] Lint - undefined object methods

---
 include/class.osticket.php | 4 ++--
 scp/staff.inc.php          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class.osticket.php b/include/class.osticket.php
index eb1b03619..78e249d50 100644
--- a/include/class.osticket.php
+++ b/include/class.osticket.php
@@ -1,5 +1,5 @@
 <?php
-/*************************************************************************
+/*******************************************************************
     class.osticket.php
 
     osTicket (sys) -> Config.
@@ -39,7 +39,7 @@ class osTicket {
     }
 
     function isSystemOnline() {
-        return ($this->getConfig() && $this->getConfig()->isHelpdeskOnline() && !$this->isUpgradePending());
+        return ($this->getConfig() && $this->getConfig()->isHelpDeskOnline() && !$this->isUpgradePending());
     }
 
     function isUpgradePending() {
diff --git a/scp/staff.inc.php b/scp/staff.inc.php
index a28cf1d63..a8310f5ed 100644
--- a/scp/staff.inc.php
+++ b/scp/staff.inc.php
@@ -71,7 +71,7 @@ if(!$thisstaff->isAdmin()) {
     }
 
     //Staff are not allowed to login in offline mode!!
-    if(!$ost->isSystemOffline() || $ost->isUpgradePending()) {
+    if(!$ost->isSystemOnline() || $ost->isUpgradePending()) {
         staffLoginPage('System Offline');
         exit;
     }
-- 
GitLab