From cdeddb6ffc08200829cf21ad4838305022340641 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 24 Jun 2008 00:00:58 -0400 Subject: [PATCH] think && was binding too closely in remembered_user darcs-hash:20080624040058-34904-0f16041ec545e1a42384178f6cd52edcae967d2a.gz --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 0502ce7976..96e7e08cf7 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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! -- 2.39.5