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/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/config.php') diff --git a/inc/config.php b/inc/config.php index 4c1978b5..d468228d 100644 --- a/inc/config.php +++ b/inc/config.php @@ -35,8 +35,8 @@ if (!isset($_SESSION['token_poche'])) { } # Traitement des paramètres et déclenchement des actions +$view = (isset ($_REQUEST['view'])) ? htmlentities($_REQUEST['view']) : 'index'; $action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : ''; -$_SESSION['view'] = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index'; $_SESSION['sort'] = (isset ($_REQUEST['sort'])) ? htmlentities($_REQUEST['sort']) : 'id'; $id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : ''; $url = (isset ($_GET['url'])) ? $_GET['url'] : ''; -- cgit v1.2.3