From 25299f06043ee033bb9f7487d7ab739b9e4d3265 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 1 Apr 2015 22:25:53 +0200 Subject: [PATCH] Events from the past aren't shown anymore (hopefully) --- boot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index c6cfde007..5db214c9f 100644 --- a/boot.php +++ b/boot.php @@ -1830,11 +1830,11 @@ if(! function_exists('get_events')) { $bd_short = t('F d'); $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 ", intval(local_user()), 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)) {