From 40e714432363aa9bdce81dc7af87b1594ab91bf0 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 15 Jan 2008 14:35:59 +0000 Subject: [PATCH] Reverting Mike C's change in MDL-12016 --- question/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/format.php b/question/format.php index d3d0de2fb7..a199e9c877 100644 --- a/question/format.php +++ b/question/format.php @@ -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; -- 2.39.5