diff options
author | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-20 05:49:17 -0400 |
---|---|---|
committer | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-20 05:49:17 -0400 |
commit | 92e90ee636f8f09c768ea0c31729dace8d60461f (patch) | |
tree | 8d37c0b90c2f8eb4a00e40f54c07ea54bd068653 /lib/util.php | |
parent | fdfb8068014176a2443265018a0a53027d535506 (diff) |
Notice error
darcs-hash:20080720094917-533db-386e12dbeabcfb9bc74cdce11e6bc197964929b7.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index e8805d8f4..ec39cefad 100644 --- a/lib/util.php +++ b/lib/util.php @@ -600,7 +600,7 @@ function common_forgetme() { function common_current_user() { if (isset($_REQUEST[session_name()]) || (isset($_SESSION['userid']) && $_SESSION['userid'])) { common_ensure_session(); - $id = $_SESSION['userid']; + $id = isset($_SESSION['userid']) ? $_SESSION['userid'] : false; if ($id) { # note: this should cache $user = User::staticGet($id); |