diff --git a/main/newscorm/learnpathItem.class.php b/main/newscorm/learnpathItem.class.php index 0f10d47ff5..ebf59ade89 100755 --- a/main/newscorm/learnpathItem.class.php +++ b/main/newscorm/learnpathItem.class.php @@ -2382,7 +2382,7 @@ class learnpathItem foreach ($list as $cond) { if (isset($items[$refs_list[$cond]])) { $status = $items[$refs_list[$cond]]->get_status(true); - if ($status == $this->possible_status[2] OR + if ($status == $this->possible_status[2] || $status == $this->possible_status[3] ) { $mytrue++; diff --git a/main/newscorm/lp_ajax_save_item.php b/main/newscorm/lp_ajax_save_item.php index bfb02a65f5..f5ea62114c 100755 --- a/main/newscorm/lp_ajax_save_item.php +++ b/main/newscorm/lp_ajax_save_item.php @@ -221,7 +221,7 @@ function save_item( * the LMS will leave the cmi.core.lesson_status as "completed" */ $masteryScore = $myLPI->get_mastery_score(); - if ($masteryScore == -1 or empty($masteryScore)) { + if ($masteryScore == -1 || empty($masteryScore)) { $masteryScore = false; } $credit = $myLPI->get_credit();