]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Notice error
authorMike Cochrane <mikec@mikenz.geek.nz>
Sun, 20 Jul 2008 09:49:17 +0000 (05:49 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Sun, 20 Jul 2008 09:49:17 +0000 (05:49 -0400)
darcs-hash:20080720094917-533db-386e12dbeabcfb9bc74cdce11e6bc197964929b7.gz

lib/util.php

index e8805d8f4473c8306fce76ded59c40dd55ab3193..ec39cefad41d06a502b493ba7471f16c18458372 100644 (file)
@@ -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);