Hiding possible fatal error

skala
Yannick Warnier 15 years ago
parent 71967f64ed
commit 0a1834a899
  1. 2
      main/exercice/export/qti2/qti2_export.php

@ -131,6 +131,8 @@ class ImsAssessmentItem
{
$head = '<?xml version="1.0" encoding="'.$charset.'" standalone="no"?>' . "\n";
}
//TODO understand why answer might be a non-object sometimes
if (!is_object($this->answer)) { return $head; }
$res = $head
. $this->start_item()
.$this->answer->imsExportResponsesDeclaration($this->questionIdent)

Loading…
Cancel
Save