diff options
author | Valentin Popov <info@valentineus.link> | 2017-11-21 09:56:41 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-11-21 09:56:41 +0300 |
commit | 2c475772629bbbc7ba51fb3579aa686b63fd488f (patch) | |
tree | 5a0e15762a471dea9aad59c97b6d3dee1efd2482 | |
parent | 6525a4288a3108c1a69e4a614e5606ee296955de (diff) | |
download | local_billingpatch-2c475772629bbbc7ba51fb3579aa686b63fd488f.tar.xz local_billingpatch-2c475772629bbbc7ba51fb3579aa686b63fd488f.zip |
Correction of a logical error
-rw-r--r-- | classes/observer.php | 2 |
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 |