mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
MDL-37572 course: fixed bug when moving categories
This commit is contained in:
parent
ef5a82104c
commit
e6a3f4ae27
@ -215,7 +215,7 @@ if (isset($category) && $canmanage && $resort && confirm_sesskey()) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($moveto) && $data = data_submitted() && confirm_sesskey()) {
|
||||
if (!empty($moveto) && ($data = data_submitted()) && confirm_sesskey()) {
|
||||
// Move a specified course to a new category.
|
||||
// User must have category update in both cats to perform this.
|
||||
require_capability('moodle/category:manage', $context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user