MDL-37572 course: fixed bug when moving categories

This commit is contained in:
Sam Hemelryk 2013-02-07 12:29:03 +13:00
parent ef5a82104c
commit e6a3f4ae27

View File

@ -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);