ID | Project | Category | Submitted / Last Updated |
---|---|---|---|
00927 | UserSpice | Misc Code | 2020-07-09 22:05:18 / 2020-07-10 20:07:45 |
Reported | Brandin Arsenault | Assigned To | Unassigned |
Priority | low | Reported | 5.1.3 |
Status | closed fixed | Resolution Version and Commit | 5.1.4 5679c9 |
Summary | Users->logout() results in error when user is not logged in | ||
Description |
<p>Message: Error: Trying to get property 'id' of non-object</p> <p> </p> <p>public function logout: check if logged in before running the DB query or add an optional || switch for the ID</p> |
xxxxxxxxxx
<p>I wrapped the db part in an if logged in but still killed all sessions and cookies regardless.</p>
xxxxxxxxxx
<p>wrapped logout db call in an if statement. Destroy sessions and cookies regardless of that statement.</p>