summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-26 19:22:03 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-26 19:22:03 +0100
commitdc412ba8268c41dfb5d9b31be70ef6c8d32adfb3 (patch)
tree4a25c8d079e388069396e124f8e07eb31c20b1b5
parent71a23be3d49ee82caecddbd787db9591fb87bd5e (diff)
sort meetings by date
-rw-r--r--includes/pages/user_news.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php
index 9536c2ea..9fe53260 100644
--- a/includes/pages/user_news.php
+++ b/includes/pages/user_news.php
@@ -21,7 +21,7 @@ function user_meetings() {
else
$page = 0;
- $news = sql_select("SELECT * FROM `News` WHERE `Treffen`=1 ORDER BY `ID` DESC LIMIT " . sql_escape($page * $DISPLAY_NEWS) . ", " . sql_escape($DISPLAY_NEWS));
+ $news = sql_select("SELECT * FROM `News` WHERE `Treffen`=1 ORDER BY `Datum` DESC LIMIT " . sql_escape($page * $DISPLAY_NEWS) . ", " . sql_escape($DISPLAY_NEWS));
foreach ($news as $entry)
$html .= display_news($entry);