diff --git a/offline.php b/offline.php index 24f8401a14c9710de2f9bf7af3a13985a47a099d..8c09a20010c4e6348e625ff7688ecab912bb0824 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;