]> git.mxchange.org Git - friendica.git/commitdiff
change event display order
authorFriendika <info@friendika.com>
Tue, 25 Oct 2011 07:38:43 +0000 (00:38 -0700)
committerFriendika <info@friendika.com>
Tue, 25 Oct 2011 07:38:43 +0000 (00:38 -0700)
boot.php

index 32ed3e40a3f35729c0d08406753dc076d9e6c25e..cb4ccb6d81a620fa3b27007b33275c14806b466d 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -989,7 +989,7 @@ function get_birthdays() {
        $r = q("SELECT `event`.*, `event`.`id` AS `eid`, `contact`.* FROM `event` 
                LEFT JOIN `contact` ON `contact`.`id` = `event`.`cid` 
                WHERE `event`.`uid` = %d AND `type` = 'birthday' AND `start` < '%s' AND `finish` > '%s' 
-               ORDER BY `start` DESC ",
+               ORDER BY `start` ASC ",
                intval(local_user()),
                dbesc(datetime_convert('UTC','UTC','now + 6 days')),
                dbesc(datetime_convert('UTC','UTC','now'))
@@ -1047,7 +1047,7 @@ function get_events() {
 
        $r = q("SELECT `event`.* FROM `event` 
                WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` > '%s'
-               ORDER BY `start` DESC ",
+               ORDER BY `start` ASC ",
                intval(local_user()),
                dbesc(datetime_convert('UTC','UTC','now + 6 days')),
                dbesc(datetime_convert('UTC','UTC','now - 1 days'))