Fixed error in create_event()
This commit is contained in:
parent
697c06560b
commit
9bef88f546
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class kolab_driver extends calendar_driver
|
||||||
public function new_event($event)
|
public function new_event($event)
|
||||||
{
|
{
|
||||||
$cid = $event['calendar'] ? $event['calendar'] : reset(array_keys($this->calendars));
|
$cid = $event['calendar'] ? $event['calendar'] : reset(array_keys($this->calendars));
|
||||||
if ($storage = $this->calendars($cid))
|
if ($storage = $this->calendars[$cid])
|
||||||
return $storage->insert_event($event);
|
return $storage->insert_event($event);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue