aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Cal.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-02 19:26:02 -0700
committerzotlabs <mike@macgirvin.com>2016-11-02 19:26:02 -0700
commit94065fde33f500691cd7fc118cfeef4ea4ca22da (patch)
tree548c799e6e741f345cc8b18652ecf8adc13964c5 /Zotlabs/Module/Cal.php
parentaab7bc5282bffeb553c1bbd505ac74fde233ea3b (diff)
downloadvolse-hubzilla-94065fde33f500691cd7fc118cfeef4ea4ca22da.tar.gz
volse-hubzilla-94065fde33f500691cd7fc118cfeef4ea4ca22da.tar.bz2
volse-hubzilla-94065fde33f500691cd7fc118cfeef4ea4ca22da.zip
issue #576 - duplicate events shown
Diffstat (limited to 'Zotlabs/Module/Cal.php')
-rw-r--r--Zotlabs/Module/Cal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Cal.php b/Zotlabs/Module/Cal.php
index 0d1641efe..d03e2e951 100644
--- a/Zotlabs/Module/Cal.php
+++ b/Zotlabs/Module/Cal.php
@@ -224,7 +224,7 @@ class Cal extends \Zotlabs\Web\Controller {
$r = q("SELECT event.*, item.plink, item.item_flags, item.author_xchan, item.owner_xchan
from event left join item on event_hash = resource_id
- where resource_type = 'event' and event.uid = %d $ignored
+ where resource_type = 'event' and event.uid = %d and event.uid = item.uid $ignored
AND (( adjust = 0 AND ( dtend >= '%s' or nofinish = 1 ) AND dtstart <= '%s' )
OR ( adjust = 1 AND ( dtend >= '%s' or nofinish = 1 ) AND dtstart <= '%s' )) $sql_extra ",
intval($channel['channel_id']),