Skip to content

Commit

Permalink
fixed inactivity timeout failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetsystems committed Jul 10, 2007
1 parent 27aba33 commit 6e23ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/auth.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
{
if (authCheckSession())
{
if (isset($_SESSION['pid']) && !$GLOBALS['DAEMON_FLAG'])
if (isset($_SESSION['pid']) && empty($GLOBALS['DAEMON_FLAG']))
{
require_once("{$GLOBALS['srcdir']}/patient.inc");
$logpatient = getPatientData($_SESSION['pid'], "lname, fname, mname");
Expand All @@ -52,7 +52,7 @@ if (!isset($_SESSION["last_update"])) {
authCloseSession();
authLoginScreen();
} else {
if (!empty($GLOBALS['DAEMON_FLAG'])) $_SESSION["last_update"] = time();
if (empty($GLOBALS['DAEMON_FLAG'])) $_SESSION["last_update"] = time();
}
}

Expand Down

0 comments on commit 6e23ca1

Please sign in to comment.