aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-08 10:54:30 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-08 10:54:30 +0200
commit0772c48b47c78ec0e5bbddfb75d76263d6032af8 (patch)
tree8823e3e5212ec21b29732ee27aff8a15b85f23e7
parent7eca3552c8f14a57b59bdb4be4ea8994616467d7 (diff)
downloadwallabag-0772c48b47c78ec0e5bbddfb75d76263d6032af8.tar.gz
wallabag-0772c48b47c78ec0e5bbddfb75d76263d6032af8.tar.zst
wallabag-0772c48b47c78ec0e5bbddfb75d76263d6032af8.zip
tri descendant des articles
-rwxr-xr-xindex.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 887326d1..d95e73df 100755
--- a/index.php
+++ b/index.php
@@ -84,15 +84,15 @@ catch (Exception $e)
84switch ($view) 84switch ($view)
85{ 85{
86 case 'archive': 86 case 'archive':
87 $sql = "SELECT * FROM entries WHERE is_read=?"; 87 $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
88 $params = array(-1); 88 $params = array(-1);
89 break; 89 break;
90 case 'fav' : 90 case 'fav' :
91 $sql = "SELECT * FROM entries WHERE is_fav=?"; 91 $sql = "SELECT * FROM entries WHERE is_fav=? ORDER BY id desc";
92 $params = array(-1); 92 $params = array(-1);
93 break; 93 break;
94 default: 94 default:
95 $sql = "SELECT * FROM entries WHERE is_read=?"; 95 $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
96 $params = array(0); 96 $params = array(0);
97 break; 97 break;
98} 98}