Reverting Mike C's change in MDL-12016

This commit is contained in:
thepurpleblob
2008-01-15 14:37:11 +00:00
parent 5580a59ba7
commit 9deccd7a44
+1 -1
View File
@@ -229,7 +229,7 @@ class qformat_default {
if ($question->qtype=='category') {
if ($this->catfromfile) {
// find/create category object
$catpath = $question->category['text'][0]['#'];
$catpath = $question->category;
$newcategory = create_category_path( $catpath, '/', $this->course->id );
if (!empty($newcategory)) {
$this->category = $newcategory;