From: Mike Cochrane Date: Sun, 20 Jul 2008 09:49:17 +0000 (-0400) Subject: Notice error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92e90ee636f8f09c768ea0c31729dace8d60461f;p=quix0rs-gnu-social.git Notice error darcs-hash:20080720094917-533db-386e12dbeabcfb9bc74cdce11e6bc197964929b7.gz --- 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);