Merge pull request #923 from ArthurHoaro/hotfix/untagged

Fix untagged only button
This commit is contained in:
ArthurHoaro 2017-08-19 17:52:28 +02:00 committed by GitHub
commit 5e58e6e2cf

View file

@ -1021,7 +1021,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
// -------- User wants to see only untagged links (toggle) // -------- User wants to see only untagged links (toggle)
if (isset($_GET['untaggedonly'])) { if (isset($_GET['untaggedonly'])) {
$_SESSION['untaggedonly'] = !empty($_SESSION['untaggedonly']); $_SESSION['untaggedonly'] = empty($_SESSION['untaggedonly']);
if (! empty($_SERVER['HTTP_REFERER'])) { if (! empty($_SERVER['HTTP_REFERER'])) {
$location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly')); $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));