think && was binding too closely in remembered_user

darcs-hash:20080624040058-34904-0f16041ec545e1a42384178f6cd52edcae967d2a.gz
This commit is contained in:
Evan Prodromou 2008-06-24 00:00:58 -04:00
parent 1db5ba0576
commit cdeddb6ffc

View File

@ -476,7 +476,7 @@ function common_remembered_user() {
list($id, $code) = explode(':', $packed); list($id, $code) = explode(':', $packed);
if ($id && $code) { if ($id && $code) {
$rm = Remember_me::staticGet($code); $rm = Remember_me::staticGet($code);
if ($rm && $rm->user_id == $id) { if ($rm && ($rm->user_id == $id)) {
$user = User::staticGet($rm->id); $user = User::staticGet($rm->id);
if ($user) { if ($user) {
# successful! # successful!