aboutsummaryrefslogtreecommitdiff
path: root/classes/observer.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/observer.php')
-rw-r--r--classes/observer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/observer.php b/classes/observer.php
index a327089..cfa1829 100644
--- a/classes/observer.php
+++ b/classes/observer.php
@@ -54,6 +54,6 @@ class observer {
private static function monkey_patch_bigbluebuttonbn($instanceid = 0) {
global $DB;
$module = $DB->get_record("bigbluebuttonbn", array("id" => $instanceid));
- $DB->set_field("event", "timeduration", $module->closingtime);
+ $DB->set_field("event", "timeduration", ($module->closingtime - $module->openingtime), array("modulename" => "bigbluebuttonbn", "instance" => $instanceid));
}
} \ No newline at end of file