From 490c98b7dbb479c4b236ee8e034e7f651c121a83 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 19 Sep 2012 00:44:37 -0700 Subject: [PATCH] fix events --- mod/events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/events.php b/mod/events.php index a43a1c8f82..527e1ec3fd 100755 --- a/mod/events.php +++ b/mod/events.php @@ -249,7 +249,7 @@ function events_content(&$a) { } else { $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 ignore = %d + WHERE `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' )) ", intval(local_user()), -- 2.39.5