diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-08-20 09:46:21 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-08-20 09:46:21 +0200 |
commit | 3544d24791d4df96fff45d4f385bce368769cd80 (patch) | |
tree | 15cd7d6569f23456aa4e36293134d0debbe5a7ed | |
parent | 819cebeb27c5ab8b4a04fc8660667ec9a29681c1 (diff) | |
download | elgg-3544d24791d4df96fff45d4f385bce368769cd80.tar.gz elgg-3544d24791d4df96fff45d4f385bce368769cd80.tar.bz2 |
fixed conference duration bug
-rw-r--r-- | models/model.php | 5 |
1 files changed, 4 insertions, 1 deletions
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); |