Minor - replace OR with ||

1.10.x
Julio Montoya 10 years ago
parent 04031ff42f
commit e83fb44c4c
  1. 2
      main/newscorm/learnpathItem.class.php
  2. 2
      main/newscorm/lp_ajax_save_item.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++;

@ -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();

Loading…
Cancel
Save