fixing a warning
This commit is contained in:
@@ -135,7 +135,7 @@ function SCORMapi1_2() {
|
||||
if (substr($element,0,14) == 'cmi.objectives') {
|
||||
preg_match('/\.(\d+)\./',$element,$matches);
|
||||
$element = preg_replace('/\.(\d+)\./',".\$1.",$element);
|
||||
if ($matches[1] == $count) {
|
||||
if (isset($matches[1]) && $matches[1] == $count) {
|
||||
$count++;
|
||||
$end = strpos($element,$matches[1])+strlen($matches[1]);
|
||||
$subelement = substr($element,0,$end);
|
||||
|
||||
Reference in New Issue
Block a user