From 925f6108ba35ac539457cac282e3159e3fbf6eb2 Mon Sep 17 00:00:00 2001 From: Sebastien SAUVAGE Date: Fri, 1 Mar 2013 16:57:34 +0100 Subject: Corrected: "Nothing found" when logging out when only private links were displayed. This closes the issues https://github.com/sebsauvage/Shaarli/issues/25 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index afe2d039..3c163154 100644 --- a/index.php +++ b/index.php @@ -320,7 +320,7 @@ function isLoggedIn() } // Force logout. -function logout() { if (isset($_SESSION)) { unset($_SESSION['uid']); unset($_SESSION['ip']); unset($_SESSION['username']);} } +function logout() { if (isset($_SESSION)) { unset($_SESSION['uid']); unset($_SESSION['ip']); unset($_SESSION['username']); unset($_SESSION['privateonly']); } } // ------------------------------------------------------------------------------------------ -- cgit v1.2.3