Skip to content
Snippets Groups Projects
Commit 2b78da27 authored by David Pesce's avatar David Pesce
Browse files

fixed issue where loggout event was ignored

parent 35c009d4
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class store extends php_obj implements log_writer {
*
*/
protected function is_event_ignored(event_base $event) {
if ((!CLI_SCRIPT || PHPUNIT_TEST) && !$this->logguests && (!isloggedin() || isguestuser())) {
if ((!CLI_SCRIPT || PHPUNIT_TEST) && !$this->logguests && isguestuser()) {
// Always log inside CLI scripts because we do not login there.
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment