From: Nicolas LÅ“uillet Date: Mon, 5 Aug 2013 21:11:10 +0000 (+0200) Subject: default sorting X-Git-Tag: 1.0-beta1~3^2~12 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f6df40db46a1ee3d422d205e38c1a47c7555f4cb;p=github%2Fwallabag%2Fwallabag.git default sorting --- diff --git a/index.php b/index.php index d0dd4ab5..40cadf88 100644 --- a/index.php +++ b/index.php @@ -14,7 +14,7 @@ $referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; $view = Tools::checkVar('view', 'home'); $action = Tools::checkVar('action'); $id = Tools::checkVar('id'); -$_SESSION['sort'] = Tools::checkVar('sort'); +$_SESSION['sort'] = Tools::checkVar('sort', 'id'); $url = new Url((isset ($_GET['url'])) ? $_GET['url'] : ''); if (isset($_GET['login'])) {