]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix untagged only button 923/head
authorArthurHoaro <arthur@hoa.ro>
Sat, 19 Aug 2017 15:41:56 +0000 (17:41 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 19 Aug 2017 15:41:56 +0000 (17:41 +0200)
index.php

index 82a92473c189b48b0edada26eac72b503c8348eb..b4c4347a40c46addc904079ae31f36b6b08da707 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1021,7 +1021,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
 
     // -------- User wants to see only untagged links (toggle)
     if (isset($_GET['untaggedonly'])) {
-        $_SESSION['untaggedonly'] = !empty($_SESSION['untaggedonly']);
+        $_SESSION['untaggedonly'] = empty($_SESSION['untaggedonly']);
 
         if (! empty($_SERVER['HTTP_REFERER'])) {
             $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));