Commit 18337dcb authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix for installation (broken by 8108c052)

Signed-off-by: default avatarRichard Mansfield <>
parent b20a4b8a
......@@ -996,7 +996,9 @@ class LiveUser extends User {
// Unset session variables related to authentication
$this->SESSION->set('authinstance', null);
delete_records('usr_session', 'session', $this->get('sessionid'));
if ($this->get('sessionid') && table_exists('usr_session')) {
delete_records('usr_session', 'session', $this->get('sessionid'));
foreach (array_keys($this->defaults) as $key) {
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