aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorLucas Cimon <lucas.cimon@gmail.com>2017-08-06 21:26:37 +0200
committerLucas Cimon <lucas.cimon@gmail.com>2017-08-06 21:26:37 +0200
commitd1b69e6af13aea6444a515e20029b6b50e688e17 (patch)
tree8b094a2f2a04fc49e7db5c6b13918c27368dbaa9 /index.php
parentc7fcea1347e81072c5b77c1b3c2c6fb13f02c16f (diff)
downloadShaarli-d1b69e6af13aea6444a515e20029b6b50e688e17.tar.gz
Shaarli-d1b69e6af13aea6444a515e20029b6b50e688e17.tar.zst
Shaarli-d1b69e6af13aea6444a515e20029b6b50e688e17.zip
Adding missing empty() as spotted in #889 code review
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 9025df58..82a92473 100644
--- a/index.php
+++ b/index.php
@@ -1021,7 +1021,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
1021 1021
1022 // -------- User wants to see only untagged links (toggle) 1022 // -------- User wants to see only untagged links (toggle)
1023 if (isset($_GET['untaggedonly'])) { 1023 if (isset($_GET['untaggedonly'])) {
1024 $_SESSION['untaggedonly'] = !$_SESSION['untaggedonly']; 1024 $_SESSION['untaggedonly'] = !empty($_SESSION['untaggedonly']);
1025 1025
1026 if (! empty($_SERVER['HTTP_REFERER'])) { 1026 if (! empty($_SERVER['HTTP_REFERER'])) {
1027 $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly')); 1027 $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));