diff --git a/course/manage.php b/course/manage.php index c3bb8724323..54763f8e2cd 100644 --- a/course/manage.php +++ b/course/manage.php @@ -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);