Browse files

MDL-7323 AICC Import does not handle Core_Vendor + remove tabs and am…

…biguous else - propogated to 1.9.
  • Loading branch information...
1 parent 47ec4f9 commit 340d23ab2ff4954858e8877108c82c9f9d414fb3 piers committed Jul 24, 2008
Showing with 8 additions and 2 deletions.
  1. +8 −2 mod/scorm/datamodels/aicclib.php
View
10 mod/scorm/datamodels/aicclib.php
@@ -279,6 +279,11 @@ function scorm_parse_aicc($pkgdir,$scormid) {
$scodata->value = $element->mastery_score;
$dataid = insert_record('scorm_scoes_data',$scodata);
}
+ if (isset($element->core_vendor)) {
+ $scodata->name = 'datafromlms';
+ $scodata->value = eregi_replace('<cr>', "\r\n", $element->core_vendor);
+ $dataid = insert_record('scorm_scoes_data',$scodata);
+ }
}
if ($launch==0) {
$launch = $id;
@@ -365,8 +370,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
$isvisible = true;
}
}
- else
- $isvisible = true;
+ else {
+ $isvisible = true;
+ }
if ($parents[$level]!=$sco->parent) {
if ($newlevel = array_search($sco->parent,$parents)) {
for ($i=0; $i<($level-$newlevel); $i++) {

0 comments on commit 340d23a

Please sign in to comment.