diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2012-06-07 08:43:55 -0700 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2012-06-07 08:43:55 -0700 |
commit | fcf8f301e595444620f07ea0e01994ea99ee961b (patch) | |
tree | f0d16d5bfe8e12a74afe2071970c83bdc10cbf35 /mod | |
parent | 6477c24919eb969d80324cf29129213f2fb8a0ea (diff) | |
parent | 1d832618a4340526092fce9e49f4580f767e1526 (diff) | |
download | volse-hubzilla-fcf8f301e595444620f07ea0e01994ea99ee961b.tar.gz volse-hubzilla-fcf8f301e595444620f07ea0e01994ea99ee961b.tar.bz2 volse-hubzilla-fcf8f301e595444620f07ea0e01994ea99ee961b.zip |
Merge pull request #327 from fabrixxm/master
events: fix select events query
Diffstat (limited to 'mod')
-rwxr-xr-x[-rw-r--r--] | mod/events.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/events.php b/mod/events.php index 069046ff9..2a6fb692e 100644..100755 --- a/mod/events.php +++ b/mod/events.php @@ -230,8 +230,8 @@ function events_content(&$a) { $r = q("SELECT `event`.*, `item`.`id` AS `itemid`,`item`.`plink`, `item`.`author-name`, `item`.`author-avatar`, `item`.`author-link` FROM `event` LEFT JOIN `item` ON `item`.`event-id` = `event`.`id` WHERE `event`.`uid` = %d - AND (( `adjust` = 0 AND `start` >= '%s' AND `start` <= '%s' ) - OR ( `adjust` = 1 AND `start` >= '%s' AND `start` <= '%s' )) ", + AND (( `adjust` = 0 AND `finish` >= '%s' AND `start` <= '%s' ) + OR ( `adjust` = 1 AND `finish` >= '%s' AND `start` <= '%s' )) ", intval(local_user()), dbesc($start), dbesc($finish), |