Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-32592 enrol_imsenterprise: fix error when category not defined

thanks to Henrik Thorn for the fix
  • Loading branch information...
commit aaf95d016102f41e3542123405c1d608ddb8d0ad 1 parent 7bc37de
@danpoltawski danpoltawski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/imsenterprise/lib.php
View
2  enrol/imsenterprise/lib.php
@@ -397,7 +397,7 @@ function process_group_tag($tagcontents) {
// Insert default names for teachers/students, from the current language
// Handle course categorisation (taken from the group.org.orgunit field if present)
- if (strlen($group->category)>0) {
+ if (!empty($group->category)) {
// If the category is defined and exists in Moodle, we want to store it in that one
if ($catid = $DB->get_field('course_categories', 'id', array('name'=>$group->category))) {
$course->category = $catid;
Please sign in to comment.
Something went wrong with that request. Please try again.