From 29ca4b37c2c7e9666af525a9f6a806bef5ab8f0a Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 29 Jun 2017 08:56:28 +0200 Subject: [PATCH] Fix php notices --- main/exercise/export/qti2/qti2_classes.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/exercise/export/qti2/qti2_classes.php b/main/exercise/export/qti2/qti2_classes.php index fdb891c3dd..6ba1754503 100755 --- a/main/exercise/export/qti2/qti2_classes.php +++ b/main/exercise/export/qti2/qti2_classes.php @@ -3,7 +3,8 @@ /** * @author Claro Team - * @author Yannick Warnier - updated ImsAnswerHotspot to match QTI norms + * @author Yannick Warnier - + * updated ImsAnswerHotspot to match QTI norms * @package chamilo.exercise */ class Ims2Question extends Question @@ -208,6 +209,9 @@ class ImsAnswerFillInBlanks extends Answer */ class ImsAnswerMatching extends Answer { + public $leftList; + public $rightList; + /** * Export the question part as a matrix-choice, with only one possible answer per line. */ @@ -222,7 +226,7 @@ class ImsAnswerMatching extends Answer //add left column $out .= ' '."\n"; if (is_array($this->leftList)) { - foreach ($this->leftList as $leftKey=>$leftElement) { + foreach ($this->leftList as $leftKey => $leftElement) { $out .= '