From d1b69e6af13aea6444a515e20029b6b50e688e17 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Sun, 6 Aug 2017 21:26:37 +0200 Subject: [PATCH] Adding missing empty() as spotted in #889 code review --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9025df5..82a9247 100644 --- 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'));