From 2c475772629bbbc7ba51fb3579aa686b63fd488f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 21 Nov 2017 10:56:41 +0400 Subject: Correction of a logical error --- classes/observer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') 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 -- cgit v1.2.3