From 8a13e1c52b2719a32c5954561c617330eb10162d Mon Sep 17 00:00:00 2001 From: skeeter Date: Tue, 18 Sep 2001 03:48:38 +0000 Subject: [PATCH] A couple of cleanups when logging errors to a file. --- phpgwapi/inc/class.sessions.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 3d290f5d7a..bac2355af2 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -469,13 +469,14 @@ // This will update the DateLastActive column, so the login does not expire function update_dla() { - if (isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) + global $PHP_SELF; + if (@isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) { $action = $GLOBALS['HTTP_GET_VARS']['menuaction']; } else { - $action = $GLOBALS['PHP_SELF']; + $action = $PHP_SELF; } $GLOBALS['phpgw']->db->query("update phpgw_sessions set session_dla='" . time() . "', session_action='$action' "