From afa17b8236903b0dcd5a633e674b2fcec0ea7d88 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 24 Aug 2016 13:06:06 +0200 Subject: [PATCH] fix PHP Fatal Call to a member function update() on null --- 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 3d266c453b..6c44d275c3 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -1414,7 +1414,7 @@ class Session $this->set_action($action); } // update dla in access-log table, if we have an access-log row (non-anonymous session) - if ($this->sessionid_access_log && $update_access_log) + if ($this->sessionid_access_log && $update_access_log && is_object($GLOBALS['egw']->db)) { $GLOBALS['egw']->db->update(self::ACCESS_LOG_TABLE,array( 'session_dla' => time(),