aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2017-08-07 16:20:36 +0200
committerGitHub <noreply@github.com>2017-08-07 16:20:36 +0200
commit154682d9a2cc5752003187323eff82a6dfa5b329 (patch)
tree8b094a2f2a04fc49e7db5c6b13918c27368dbaa9 /index.php
parentc7fcea1347e81072c5b77c1b3c2c6fb13f02c16f (diff)
parentd1b69e6af13aea6444a515e20029b6b50e688e17 (diff)
downloadShaarli-154682d9a2cc5752003187323eff82a6dfa5b329.tar.gz
Shaarli-154682d9a2cc5752003187323eff82a6dfa5b329.tar.zst
Shaarli-154682d9a2cc5752003187323eff82a6dfa5b329.zip
Merge pull request #918 from Lucas-C/master
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'));