Events from the past aren't shown anymore (hopefully)
This commit is contained in:
parent
1ccbf39799
commit
25299f0604
4
boot.php
4
boot.php
|
@ -1830,11 +1830,11 @@ if(! function_exists('get_events')) {
|
||||||
$bd_short = t('F d');
|
$bd_short = t('F d');
|
||||||
|
|
||||||
$r = q("SELECT `event`.* FROM `event`
|
$r = q("SELECT `event`.* FROM `event`
|
||||||
WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` > '%s'
|
WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` >= '%s'
|
||||||
ORDER BY `start` ASC ",
|
ORDER BY `start` ASC ",
|
||||||
intval(local_user()),
|
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'))
|
dbesc(date("Y-m-d 00:00:00"))
|
||||||
);
|
);
|
||||||
|
|
||||||
if($r && count($r)) {
|
if($r && count($r)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user