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

Fix for installation (broken by 8108c052)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b20a4b8a
...@@ -996,7 +996,9 @@ class LiveUser extends User { ...@@ -996,7 +996,9 @@ class LiveUser extends User {
// Unset session variables related to authentication // Unset session variables related to authentication
$this->SESSION->set('authinstance', null); $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'));
}
reset($this->defaults); reset($this->defaults);
foreach (array_keys($this->defaults) as $key) { 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