diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-08-07 16:20:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 16:20:36 +0200 |
commit | 154682d9a2cc5752003187323eff82a6dfa5b329 (patch) | |
tree | 8b094a2f2a04fc49e7db5c6b13918c27368dbaa9 /index.php | |
parent | c7fcea1347e81072c5b77c1b3c2c6fb13f02c16f (diff) | |
parent | d1b69e6af13aea6444a515e20029b6b50e688e17 (diff) | |
download | Shaarli-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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')); |