projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28bd9d0
)
MFB: Fix adding recurring events when listing all events (Bug #8688).
author
Jan Schneider
<jan@horde.org>
Wed, 11 Nov 2009 08:04:50 +0000
(09:04 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 11 Nov 2009 18:48:20 +0000
(19:48 +0100)
kronolith/lib/Driver/Sql.php
patch
|
blob
|
history
diff --git
a/kronolith/lib/Driver/Sql.php
b/kronolith/lib/Driver/Sql.php
index
35340b7
..
244a640
100644
(file)
--- a/
kronolith/lib/Driver/Sql.php
+++ b/
kronolith/lib/Driver/Sql.php
@@
-383,7
+383,9
@@
class Kronolith_Driver_Sql extends Kronolith_Driver
$events[$row['event_uid']] = $row['event_id'];
} else {
$next = $this->nextRecurrence($row['event_id'], $startInterval);
- if ($next && $next->compareDateTime($endInterval) < 0) {
+ if ($next &&
+ (is_null($endInterval) ||
+ $next->compareDateTime($endInterval) < 0)) {
$events[$row['event_uid']] = $row['event_id'];
}
}