0
mirror of https://github.com/valentineus/moodle-billingpatch.git synced 2025-04-27 11:21:23 +03:00

Correction of a logical error

This commit is contained in:
Valentin Popov 2017-11-21 10:56:41 +04:00
parent 6525a4288a
commit 2c47577262

View File

@ -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));
}
}