]> git.mxchange.org Git - friendica.git/commitdiff
events with no finish date don't appear in calendar
authorfriendica <info@friendica.com>
Wed, 16 Jan 2013 11:16:45 +0000 (03:16 -0800)
committerfriendica <info@friendica.com>
Wed, 16 Jan 2013 11:16:45 +0000 (03:16 -0800)
mod/events.php

index 61f16b50fc75dcd1ea9381f0f731bdeb3b76f3d2..2f41c0e33dedfbc63da4e617f47511905d7969b3 100755 (executable)
@@ -250,8 +250,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 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),