diff options
author | friendica <info@friendica.com> | 2013-01-16 03:18:32 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-16 03:18:32 -0800 |
commit | af066d7383edfc9c47ceb64076ec38efd6f39edb (patch) | |
tree | b97da0065416bdabf5f8948652f6d5757f2f197b /mod/events.php | |
parent | 4fd833b9530c93b71dcb2b1587a4b3c5869915ce (diff) | |
download | volse-hubzilla-af066d7383edfc9c47ceb64076ec38efd6f39edb.tar.gz volse-hubzilla-af066d7383edfc9c47ceb64076ec38efd6f39edb.tar.bz2 volse-hubzilla-af066d7383edfc9c47ceb64076ec38efd6f39edb.zip |
mopping up the events issues so I can move on to other stuff
Diffstat (limited to 'mod/events.php')
-rwxr-xr-x | mod/events.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/events.php b/mod/events.php index 9bcad1f87..975278618 100755 --- a/mod/events.php +++ b/mod/events.php @@ -236,10 +236,11 @@ function events_content(&$a) { intval($_GET['id']) ); } else { + $r = q("SELECT * from event left join item on event_hash = resource_id where resource_type = 'event' and event.uid = %d and event.ignore = %d - AND (( `adjust` = 0 AND `finish` >= '%s' AND `start` <= '%s' ) - OR ( `adjust` = 1 AND `finish` >= '%s' AND `start` <= '%s' )) ", + AND (( `adjust` = 0 AND ( `finish` >= '%s' or nofinish ) AND `start` <= '%s' ) + OR ( `adjust` = 1 AND ( `finish` >= '%s' or nofinish ) AND `start` <= '%s' )) ", intval(local_user()), intval($ignored), dbesc($start), @@ -247,6 +248,7 @@ function events_content(&$a) { dbesc($adjust_start), dbesc($adjust_finish) ); + } $links = array(); |