Reverting Mike C's change in MDL-12016

This commit is contained in:
thepurpleblob
2008-01-15 14:34:08 +00:00
parent 86f404fa52
commit be1448f47b
+1 -1
View File
@@ -274,7 +274,7 @@ class qformat_default {
if ($question->qtype=='category') {
if ($this->catfromfile) {
// find/create category object
$catpath = $question->category['text'][0]['#'];
$catpath = $question->category;
$newcategory = $this->create_category_path( $catpath, '/');
if (!empty($newcategory)) {
$this->category = $newcategory;