do NOT query sessionid_access_log for anonymous sessions, as they get not loged anyway

This commit is contained in:
Ralf Becker 2011-05-05 15:50:22 +00:00
parent 1a0826b182
commit ce619a8711

View File

@ -982,7 +982,7 @@ class egw_session
}
// query accesslog-id, if not set in session (session is made persistent after login!)
if (!$this->sessionid_access_log)
if (!$this->sessionid_access_log && $this->session_flags != 'A')
{
$this->sessionid_access_log = $GLOBALS['egw']->db->select(self::ACCESS_LOG_TABLE,'sessionid',array(
'session_php' => $this->sessionid,