projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f32cdb4
)
can't clone NULL
author
Chuck Hagenbuch
<chuck@horde.org>
Fri, 25 Sep 2009 15:27:14 +0000
(11:27 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Fri, 25 Sep 2009 15:27:14 +0000
(11:27 -0400)
kronolith/lib/Kronolith.php
patch
|
blob
|
history
diff --git
a/kronolith/lib/Kronolith.php
b/kronolith/lib/Kronolith.php
index
063af75
..
a273501
100644
(file)
--- a/
kronolith/lib/Kronolith.php
+++ b/
kronolith/lib/Kronolith.php
@@
-490,7
+490,11
@@
class Kronolith
/* Work out what day it ends on. */
if ($event->end->compareDateTime($endDate) > 0) {
/* Ends after the end of the period. */
- $eventEnd = clone $endDate;
+ if (is_object($endDate)) {
+ $eventEnd = clone $endDate;
+ } else {
+ $eventEnd = $endDate;
+ }
} else {
/* If the event doesn't end at 12am set the end date to the
* current end date. If it ends at 12am and does not end at