This:

  db_query('DELETE FROM sessions WHERE uid != %d AND uid > 0', $user->uid);

should be changed to:

  db_query('DELETE FROM {sessions} WHERE uid != %d AND uid > 0', $user->uid);

Comments

kenorb’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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