Merge branch 'mdl-84979_main' of https://github.com/james-cnz/moodle

This commit is contained in:
Jun Pataleta
2025-04-02 16:21:33 +08:00
+4 -4
View File
@@ -967,11 +967,11 @@ abstract class base {
}
}
if ($targetsectionid) {
$params['sectionid'] = $targetsectionid;
if (isset($targetsectionid)) {
$params['targetsectionid'] = $targetsectionid;
}
if ($targetcmid) {
$params['cmid'] = $targetcmid;
if (isset($targetcmid)) {
$params['targetcmid'] = $targetcmid;
}
if ($returnurl) {
$params['returnurl'] = $returnurl->out_as_local_url();