Skip to content

Commit

Permalink
Skip any events that don't have a UID.
Browse files Browse the repository at this point in the history
If searching for exceptions to an event that doesn't have a UID, all events are returned. In combination with importing iCalendar data via the API this will delete *all* events if a recurring event doesn't have a UID.

Bug: 14208
  • Loading branch information
yunosh committed Dec 28, 2015
1 parent cda964d commit 9c2c77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kronolith/lib/Event.php
Expand Up @@ -2597,11 +2597,11 @@ public function exceptionsList()
*/
public function boundExceptions($flat = true)
{
if (!$this->recurrence) {
if (!$this->recurrence || !$this->uid) {
return array();
}
$return = array();
$search = new StdClass();
$search = new stdClass();
$search->baseid = $this->uid;
$results = $this->getDriver()->search($search);
if (!$flat) {
Expand Down

0 comments on commit 9c2c77d

Please sign in to comment.