From 392238d6269a68074be500dbf3de982e799b0a52 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 8 Aug 2007 15:23:11 +0000 Subject: [PATCH] Was not checking error return from plugin export properly --- question/format/xml/format.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 515e917412..27d340888b 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -986,9 +986,10 @@ class qformat_xml extends qformat_default { break; default: // try support by optional plugin - if (!$expout .= $this->try_exporting_using_qtypes( $question->qtype, $question )) { + if (!$data = $this->try_exporting_using_qtypes( $question->qtype, $question )) { error( "Unsupported question type $question->qtype" ); } + $expout .= $data; } // close the question tag -- 2.39.5