diff options
author | Lucas Cimon <lucas.cimon@gmail.com> | 2017-08-06 21:26:37 +0200 |
---|---|---|
committer | Lucas Cimon <lucas.cimon@gmail.com> | 2017-08-06 21:26:37 +0200 |
commit | d1b69e6af13aea6444a515e20029b6b50e688e17 (patch) | |
tree | 8b094a2f2a04fc49e7db5c6b13918c27368dbaa9 | |
parent | c7fcea1347e81072c5b77c1b3c2c6fb13f02c16f (diff) | |
download | Shaarli-d1b69e6af13aea6444a515e20029b6b50e688e17.tar.gz Shaarli-d1b69e6af13aea6444a515e20029b6b50e688e17.tar.zst Shaarli-d1b69e6af13aea6444a515e20029b6b50e688e17.zip |
Adding missing empty() as spotted in #889 code review
-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')); |