think && was binding too closely in remembered_user
darcs-hash:20080624040058-34904-0f16041ec545e1a42384178f6cd52edcae967d2a.gz
This commit is contained in:
parent
1db5ba0576
commit
cdeddb6ffc
|
@ -476,7 +476,7 @@ function common_remembered_user() {
|
|||
list($id, $code) = explode(':', $packed);
|
||||
if ($id && $code) {
|
||||
$rm = Remember_me::staticGet($code);
|
||||
if ($rm && $rm->user_id == $id) {
|
||||
if ($rm && ($rm->user_id == $id)) {
|
||||
$user = User::staticGet($rm->id);
|
||||
if ($user) {
|
||||
# successful!
|
||||
|
|
Loading…
Reference in New Issue
Block a user