From 92e90ee636f8f09c768ea0c31729dace8d60461f Mon Sep 17 00:00:00 2001 From: Mike Cochrane Date: Sun, 20 Jul 2008 05:49:17 -0400 Subject: [PATCH] Notice error darcs-hash:20080720094917-533db-386e12dbeabcfb9bc74cdce11e6bc197964929b7.gz --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index e8805d8f44..ec39cefad4 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); -- 2.39.5