diff --git a/user/profile/index.php b/user/profile/index.php index 5bd8b31d45f..f5035e7d9d6 100644 --- a/user/profile/index.php +++ b/user/profile/index.php @@ -55,7 +55,7 @@ switch ($action) { echo $OUTPUT->heading(get_string('profiledeletecategory', 'admin')); $formcontinue = new single_button(new moodle_url($redirect, $optionsyes), get_string('yes'), 'post'); - $formcancel = new single_button($redirect, get_string('no'), 'get'); + $formcancel = new single_button(new moodle_url($redirect), get_string('no'), 'get'); echo $OUTPUT->confirm(get_string('profileconfirmcategorydeletion', 'admin', $fieldcount), $formcontinue, $formcancel); echo $OUTPUT->footer(); die;