From 3544d24791d4df96fff45d4f385bce368769cd80 Mon Sep 17 00:00:00 2001 From: Kevin Jardine Date: Mon, 20 Aug 2012 09:46:21 +0200 Subject: fixed conference duration bug --- models/model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'models/model.php') diff --git a/models/model.php b/models/model.php index 85e605352..32a9c928a 100644 --- a/models/model.php +++ b/models/model.php @@ -2287,7 +2287,10 @@ function event_calendar_create_bbb_conf($event) { $bbb_server_url = rtrim(elgg_get_plugin_setting('bbb_server_url','event_calendar'), '/') . '/'; if ($bbb_security_salt) { $day_in_minutes = 60*24; - $duration = (int)(($event->real_end_time-$event->start_date)/60)+$day_in_minutes; + $now = time(); + // fix duration bug + # $duration = (int)(($event->real_end_time-$event->start_date)/60)+$day_in_minutes; + $duration = (int)(($event->real_end_time-$now)/60)+$day_in_minutes; $title = urlencode($event->title); $params = "name=$title&meetingID={$event->guid}&duration=$duration"; $checksum = sha1('create'.$params.$bbb_security_salt); -- cgit v1.2.3