mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
need a lower bound for events
This commit is contained in:
parent
0b55a7a703
commit
323a7e4c9c
1 changed files with 3 additions and 2 deletions
5
boot.php
5
boot.php
|
@ -1046,10 +1046,11 @@ function get_events() {
|
|||
$bd_short = t('F d');
|
||||
|
||||
$r = q("SELECT `event`.* FROM `event`
|
||||
WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s'
|
||||
WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` > '%s'
|
||||
ORDER BY `start` DESC ",
|
||||
intval(local_user()),
|
||||
dbesc(datetime_convert('UTC','UTC','now + 6 days'))
|
||||
dbesc(datetime_convert('UTC','UTC','now + 6 days')),
|
||||
dbesc(datetime_convert('UTC','UTC','now - 1 days'))
|
||||
);
|
||||
|
||||
if($r && count($r)) {
|
||||
|
|
Loading…
Reference in a new issue