Send ping command only once when importing multiple evetns (#2355)

This commit is contained in:
Thomas Bruederli 2013-10-16 09:38:48 +02:00
parent e389c314a5
commit 16fc7aef10

View file

@ -393,8 +393,10 @@ class kolab_driver extends calendar_driver
$success = $storage->insert_event($event);
if ($success && $this->freebusy_trigger)
if ($success && $this->freebusy_trigger) {
$this->rc->output->command('plugin.ping_url', array('action' => 'calendar/push-freebusy', 'source' => $storage->id));
$this->freebusy_trigger = false; // disable after first execution (#2355)
}
return $success;
}