Skip to content
Snippets Groups Projects
Commit 212d47c7 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #135 from greezybacon/issue/offline-crash

Fix PHP crash when system is offline due to pending upgrade

Reviewed By: Peter 07/01/12
parents 03a84301 40fcda7c
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
vim: expandtab sw=4 ts=4 sts=4: vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/ **********************************************************************/
require_once('client.inc.php'); 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. @header('Location: index.php'); //Redirect if the system is online.
include('index.php'); include('index.php');
exit; 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