user.logout using $user variable, even tough it was out of scope for this function. So logout did not work as it should.

I also changed it to work a bit more like real user_logout (form core user.module), so after logout global $user becomes anonymous, instead of just NULL (just in case something else will try to use $user later :).

CommentFileSizeAuthor
user_service.module.patch580 bytesahwayakchih

Comments

ahwayakchih’s picture

s/using/was using

:)

killes@www.drop.org’s picture

Status: Needs review » Reviewed & tested by the community

I was about to provide the same patch...

marcingy’s picture

Status: Reviewed & tested by the community » Fixed

Committed to drupal 5 and drupal 6

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.