diff options
author | Friendika <info@friendika.com> | 2011-10-25 00:38:43 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-25 00:38:43 -0700 |
commit | 1d325f6e76bea72b81eb6706e59acd1f9cb7c827 (patch) | |
tree | f0035f2e8a8f7eaa82dd9fa8c52c7071dbebe060 /boot.php | |
parent | 323a7e4c9c96ae2101dacf2f6c06197bd83fbecf (diff) | |
download | volse-hubzilla-1d325f6e76bea72b81eb6706e59acd1f9cb7c827.tar.gz volse-hubzilla-1d325f6e76bea72b81eb6706e59acd1f9cb7c827.tar.bz2 volse-hubzilla-1d325f6e76bea72b81eb6706e59acd1f9cb7c827.zip |
change event display order
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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')) |