From e6a3f4ae27b4e7f6c8555fbfdb953fb04672554b Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 7 Feb 2013 12:29:03 +1300 Subject: [PATCH] MDL-37572 course: fixed bug when moving categories --- course/manage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);