]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #918 from Lucas-C/master
authorVirtualTam <virtualtam+github@flibidi.net>
Mon, 7 Aug 2017 14:20:36 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2017 14:20:36 +0000 (16:20 +0200)
Adding missing empty() as spotted in #889 code review

index.php

index 9025df58f03202aaad35c32c58160ebe902e30d9..82a92473c189b48b0edada26eac72b503c8348eb 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'] = !$_SESSION['untaggedonly'];
+        $_SESSION['untaggedonly'] = !empty($_SESSION['untaggedonly']);
 
         if (! empty($_SERVER['HTTP_REFERER'])) {
             $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));