From 925f6108ba35ac539457cac282e3159e3fbf6eb2 Mon Sep 17 00:00:00 2001 From: Sebastien SAUVAGE Date: Fri, 1 Mar 2013 16:57:34 +0100 Subject: [PATCH] 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(-) diff --git a/index.php b/index.php index afe2d03..3c16315 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']); } } // ------------------------------------------------------------------------------------------