diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-08 10:54:30 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-08 10:54:30 +0200 |
commit | 0772c48b47c78ec0e5bbddfb75d76263d6032af8 (patch) | |
tree | 8823e3e5212ec21b29732ee27aff8a15b85f23e7 | |
parent | 7eca3552c8f14a57b59bdb4be4ea8994616467d7 (diff) | |
download | wallabag-0772c48b47c78ec0e5bbddfb75d76263d6032af8.tar.gz wallabag-0772c48b47c78ec0e5bbddfb75d76263d6032af8.tar.zst wallabag-0772c48b47c78ec0e5bbddfb75d76263d6032af8.zip |
tri descendant des articles
-rwxr-xr-x | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,15 +84,15 @@ catch (Exception $e) | |||
84 | switch ($view) | 84 | switch ($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 | } |