From 9fee2e7266a269a8795b96b972cdc62bbcb3329b Mon Sep 17 00:00:00 2001 From: nicosomb Date: Tue, 16 Apr 2013 12:58:03 +0200 Subject: Fixed #13 - tri par date / tri par titre --- inc/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index a7430585..464410cb 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -182,7 +182,7 @@ function action_to_do($action, $id, $url, $token) /** * Détermine quels liens afficher : home, fav ou archives */ -function display_view() +function display_view($view) { global $db; @@ -205,7 +205,7 @@ function display_view() break; } - switch ($_SESSION['view']) + switch ($view) { case 'archive': $sql = "SELECT * FROM entries WHERE is_read=? " . $order; -- cgit v1.2.3