mirror of
https://github.com/valentineus/moodle-billingpatch.git
synced 2025-04-27 11:21:23 +03:00
Additional conditions check
This commit is contained in:
parent
2c47577262
commit
9308f74d00
@ -53,7 +53,11 @@ class observer {
|
|||||||
*/
|
*/
|
||||||
private static function monkey_patch_bigbluebuttonbn($instanceid = 0) {
|
private static function monkey_patch_bigbluebuttonbn($instanceid = 0) {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
$module = $DB->get_record("bigbluebuttonbn", array("id" => $instanceid));
|
$module = $DB->get_record("bigbluebuttonbn", array("id" => $instanceid));
|
||||||
$DB->set_field("event", "timeduration", ($module->closingtime - $module->openingtime), array("modulename" => "bigbluebuttonbn", "instance" => $instanceid));
|
|
||||||
|
if ($module->closingtime != 0) {
|
||||||
|
$DB->set_field("event", "timeduration", ($module->closingtime - $module->openingtime), array("modulename" => "bigbluebuttonbn", "instance" => $instanceid));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user