using bogus attribute of $rm

darcs-hash:20080624040234-34904-bf5e87a55ee94c74b840c6a62e78e476c7b5f8d3.gz
This commit is contained in:
Evan Prodromou 2008-06-24 00:02:34 -04:00
parent cdeddb6ffc
commit 5650d698be

View File

@ -477,7 +477,7 @@ function common_remembered_user() {
if ($id && $code) {
$rm = Remember_me::staticGet($code);
if ($rm && ($rm->user_id == $id)) {
$user = User::staticGet($rm->id);
$user = User::staticGet($rm->user_id);
if ($user) {
# successful!
$result = $rm->delete();