summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-24 00:00:58 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-24 00:00:58 -0400
commitcdeddb6ffc08200829cf21ad4838305022340641 (patch)
tree7e6a330524723127d191b7556f039cbbed24c75a
parent1db5ba05763f75f47fd9bc510c14691b3e7969de (diff)
think && was binding too closely in remembered_user
darcs-hash:20080624040058-34904-0f16041ec545e1a42384178f6cd52edcae967d2a.gz
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 0502ce797..96e7e08cf 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!