Commit 2bcf25fc authored by Daniel Morlock's avatar Daniel Morlock

Don't create a new calendar in CalDAV driver if calendar are empty. This...

Don't create a new calendar in CalDAV driver if calendar are empty. This should only be done in the Kolab driver.
parent fb963793
......@@ -147,12 +147,6 @@ class caldav_driver extends calendar_driver
*/
public function list_calendars($filter = 0)
{
// attempt to create a default calendar for this user
if (empty($this->calendars)) {
if ($this->create_calendar(array('name' => 'Default', 'color' => 'cc0000', 'showalarms' => true)))
$this->_read_calendars();
}
$calendars = $this->calendars;
// filter active calendars
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment