]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Update LinkFilter to be able to filter only public links
[github/shaarli/Shaarli.git] / index.php
index 145ea3f63a51edfda5e082cc1793ef44e30ccb2e..4f07a013420c93dfc4decd8219dce61bdea8a7e9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1630,8 +1630,8 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
         }
     } else {
         // Filter links according search parameters.
-        $privateonly = !empty($_SESSION['privateonly']);
-        $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $privateonly);
+        $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all';
+        $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $visibility);
     }
 
     // ---- Handle paging.