]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Corrected: "Nothing found" when logging out when only private links were displayed.
[github/shaarli/Shaarli.git] / index.php
index afe2d039a37e6a8e9fa551a4ec7980173e140d33..3c16315404efe2bc8e772ee9c1400b21ed6d7a2d 100644 (file)
--- 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']); }  }
 
 
 // ------------------------------------------------------------------------------------------