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 304a41de19
commit b121039ef1

View File

@ -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(),