Skip to content

Commit

Permalink
Bugfix: Deal with array in course creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgmaisser committed Jul 4, 2024
1 parent 09e9107 commit 26ad6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/connectedcourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private static function retrieve_categoryid(stdClass &$newoption, stdClass &$for
$category->name = $formdata->{$cfforcategory};

if (is_array($category->name)) {
$category->name = reset($categoryname);
$category->name = reset($category->name);
}

if (is_string($category->name) && !empty($category->name)) {
Expand Down

0 comments on commit 26ad6d2

Please sign in to comment.