diff --git a/includes/ical.php b/includes/ical.php index 29e744b..5ce1daa 100644 --- a/includes/ical.php +++ b/includes/ical.php @@ -261,8 +261,7 @@ function addNode($node) { { if(!is_array($this->data[$node->getName()])) { - $this->data[$node->getName()] = array(); - $this->data[$node->getName()][] = $node; + $this->data[$node->getName()] = array($this->data[$node->getName()]); } $this->data[$node->getName()][] = $node; }