Commit 1edb9aad authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Perform more checks before attempting to delete session record on logout

Signed-off-by: default avatarRichard Mansfield <>
parent 18337dcb
......@@ -996,7 +996,8 @@ class LiveUser extends User {
// Unset session variables related to authentication
$this->SESSION->set('authinstance', null);
if ($this->get('sessionid') && table_exists('usr_session')) {
if (get_config('installed') && !defined('INSTALLER') && $this->get('sessionid')
&& function_exists('table_exists') && table_exists('usr_session')) {
delete_records('usr_session', 'session', $this->get('sessionid'));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment