Update of /cvsroot/logicampus/logicampus/src/logicreate/lib
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv5865/lib
Modified Files:
Assessment.php AssessmentQuestion.php
Log Message:
Fix assessment decompress questions and answers.
Remove debugging notice when completing a test.
Index: AssessmentQuestion.php
===================================================================
RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/AssessmentQuestion.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AssessmentQuestion.php 8 Oct 2007 14:35:27 -0000 1.5
--- AssessmentQuestion.php 8 Nov 2007 17:08:04 -0000 1.6
***************
*** 401,408 ****
$subObj->fileHash = $superObj->fileHash;
! // Adam added this here.. it seemed necessary
! //$subObj->questionChoices = unserialize(base64_decode($subObj->questionChoices));
! // Commented out by Keith since this needs to be in row2Obj above
!
return $subObj;
}
--- 401,406 ----
$subObj->fileHash = $superObj->fileHash;
! $subObj->questionChoices = unserialize(base64_decode($subObj->questionChoices));
! $subObj->questionInput = unserialize(base64_decode($subObj->questionInput));
return $subObj;
}
Index: Assessment.php
===================================================================
RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/Assessment.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Assessment.php 8 Oct 2007 14:35:27 -0000 1.8
--- Assessment.php 8 Nov 2007 17:08:04 -0000 1.9
***************
*** 409,412 ****
--- 409,415 ----
$subObj->fileHash = $superObj->fileHash;
+ $subObj->questionChoices = unserialize(base64_decode($subObj->questionChoices));
+ $subObj->questionInput = unserialize(base64_decode($subObj->questionInput));
+
$subObjArray[] =$subObj;
}
|