[svn r17327] Fixed warning when uploading SCORM archive (or not uploading anything, actually)

skala
Yannick Warnier 17 years ago
parent 094954db82
commit 3de4586761
  1. 2
      main/newscorm/learnpath.class.php

@ -1837,6 +1837,7 @@ class learnpath {
$manifest = ''; $manifest = '';
//the following loop should be stopped as soon as we found the right imsmanifest.xml (how to recognize it?) //the following loop should be stopped as soon as we found the right imsmanifest.xml (how to recognize it?)
if (is_array($zipContentArray) && count($zipContentArray)>0) {
foreach($zipContentArray as $thisContent) foreach($zipContentArray as $thisContent)
{ {
if ( preg_match('~.(php.*|phtml)$~i', $thisContent['filename']) ) if ( preg_match('~.(php.*|phtml)$~i', $thisContent['filename']) )
@ -1859,6 +1860,7 @@ class learnpath {
$package_type = ''; $package_type = '';
} }
} }
}
return $package_type; return $package_type;
} }
/** /**

Loading…
Cancel
Save