diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-08-05 11:57:48 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-08-05 11:57:48 +0000 |
commit | 31d48d9640b85143d6b198af4cb117204265d58d (patch) | |
tree | 2a89e1549316ad4331c6b0240d7596d0da088a64 | |
parent | 3618b20bd0077c9affcce86bd606715d65046bb4 (diff) | |
download | acf-core-31d48d9640b85143d6b198af4cb117204265d58d.tar.bz2 acf-core-31d48d9640b85143d6b198af4cb117204265d58d.tar.xz |
Fix minor exception when called from console client
-rw-r--r-- | lib/authenticator.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authenticator.lua b/lib/authenticator.lua index 1f312ec..3b81661 100644 --- a/lib/authenticator.lua +++ b/lib/authenticator.lua @@ -76,7 +76,7 @@ local write_settings = function(self, settings, id) local success = auth.write_entry(self, usertable, "", id.userid, (id.password or "")..":"..(id.username or "")..":"..(id.roles or "")..":"..(id.skin or "")) - if success and self.sessiondata.userinfo.userid == id.userid then + if success and self.sessiondata and self.sessiondata.userinfo and self.sessiondata.userinfo.userid == id.userid then self.sessiondata.userinfo = {} for name,value in pairs(id) do self.sessiondata.userinfo[name] = value |