diff options
author | Friendika <info@friendika.com> | 2011-10-25 00:36:23 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-25 00:36:23 -0700 |
commit | 323a7e4c9c96ae2101dacf2f6c06197bd83fbecf (patch) | |
tree | 85eca12c2a9f8ed1555cad4ce31ed110ccbbbc66 /boot.php | |
parent | 0b55a7a70328f716dcf2d51c3c757b2b3f76f7a0 (diff) | |
download | volse-hubzilla-323a7e4c9c96ae2101dacf2f6c06197bd83fbecf.tar.gz volse-hubzilla-323a7e4c9c96ae2101dacf2f6c06197bd83fbecf.tar.bz2 volse-hubzilla-323a7e4c9c96ae2101dacf2f6c06197bd83fbecf.zip |
need a lower bound for events
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) { |