fix PHP Fatal Call to a member function update() on null

This commit is contained in:
Ralf Becker 2016-08-24 13:06:06 +02:00
parent 0cf37ba54d
commit afa17b8236

View File

@ -1414,7 +1414,7 @@ class Session
$this->set_action($action); $this->set_action($action);
} }
// update dla in access-log table, if we have an access-log row (non-anonymous 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) if ($this->sessionid_access_log && $update_access_log && is_object($GLOBALS['egw']->db))
{ {
$GLOBALS['egw']->db->update(self::ACCESS_LOG_TABLE,array( $GLOBALS['egw']->db->update(self::ACCESS_LOG_TABLE,array(
'session_dla' => time(), 'session_dla' => time(),