From cad1ec2aafde36ca541e0d857d8ed5dd4b2a1ab1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 22 Oct 2019 09:56:40 +0200 Subject: [PATCH] fix regular expression to not update access-log for avatar --- api/src/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Session.php b/api/src/Session.php index 924f983504..7e825eb609 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -1797,7 +1797,7 @@ class Session // update dla in access-log table, if we have an access-log row (non-anonymous session) if ($this->sessionid_access_log && $update_access_log && // ignore updates (session creation is written) of *dav and avatar, due to possible high volume of updates - !preg_match('#^(/webdav|/groupdav|api/avatar)\.php#', $this->action) && + !preg_match('#^(/webdav|/groupdav|/api/avatar)\.php#', $this->action) && is_object($GLOBALS['egw']->db)) { $GLOBALS['egw']->db->update(self::ACCESS_LOG_TABLE,array(