aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rwxr-xr-xinc/functions.php4
1 files changed, 2 insertions, 2 deletions
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)
182/** 182/**
183 * Détermine quels liens afficher : home, fav ou archives 183 * Détermine quels liens afficher : home, fav ou archives
184 */ 184 */
185function display_view() 185function display_view($view)
186{ 186{
187 global $db; 187 global $db;
188 188
@@ -205,7 +205,7 @@ function display_view()
205 break; 205 break;
206 } 206 }
207 207
208 switch ($_SESSION['view']) 208 switch ($view)
209 { 209 {
210 case 'archive': 210 case 'archive':
211 $sql = "SELECT * FROM entries WHERE is_read=? " . $order; 211 $sql = "SELECT * FROM entries WHERE is_read=? " . $order;