]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Merge pull request #938 from ArthurHoaro/hotfix/tagcloud-order
[github/shaarli/Shaarli.git] / index.php
index 9025df58f03202aaad35c32c58160ebe902e30d9..76526bd54717efeaf2d56eed8f83ed6a6970e67d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -803,7 +803,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
             $maxcount = max($maxcount, $value);
         }
 
-        alphabetical_sort($tags, true, true);
+        alphabetical_sort($tags, false, true);
 
         $tagList = array();
         foreach($tags as $key => $value) {
@@ -1021,7 +1021,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
 
     // -------- User wants to see only untagged links (toggle)
     if (isset($_GET['untaggedonly'])) {
-        $_SESSION['untaggedonly'] = !$_SESSION['untaggedonly'];
+        $_SESSION['untaggedonly'] = empty($_SESSION['untaggedonly']);
 
         if (! empty($_SERVER['HTTP_REFERER'])) {
             $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));