]> git.mjollnir.org Git - moodle.git/commitdiff
Was not checking error return from plugin export properly
authorthepurpleblob <thepurpleblob>
Wed, 8 Aug 2007 15:23:11 +0000 (15:23 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 8 Aug 2007 15:23:11 +0000 (15:23 +0000)
question/format/xml/format.php

index 515e9174126026bf0a18fccf64c79483630a7016..27d340888b3c8a3ed76a00cdf614ae6f99f34847 100755 (executable)
@@ -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