Minor: RemedialCourse: Flintci Fix refs BT#18165

pull/3729/head
Carlos Alvarado 5 years ago
parent 003bb085b8
commit c93e54c94c
No known key found for this signature in database
GPG Key ID: B612DB1EE6658FBB
  1. 10
      main/exercise/exercise.class.php
  2. 1
      main/inc/lib/usergroup.lib.php

@ -10946,14 +10946,17 @@ class Exercise
}
/**
* Returns true if the exercise is locked by percentage. an exercise attempt must be passed
* Returns true if the exercise is locked by percentage. an exercise attempt must be passed.
*
* @param array $attemp
*
* @return bool
*/
public function isBlockedByPercentage($attemp = []){
if(empty($attemp)) return false;
public function isBlockedByPercentage($attemp = [])
{
if (empty($attemp)) {
return false;
}
$extraFieldValue = new ExtraFieldValue('exercise');
$blockExercise = $extraFieldValue->get_values_by_handler_and_field_variable(
$this->iId,
@ -10970,7 +10973,6 @@ class Exercise
return false;
}
/**
* When a student completes the number of attempts and fails the exam, she is enrolled in a series of remedial
* courses BT#18165.

@ -520,6 +520,7 @@ class UserGroup extends Model
if ($getCount) {
if (Database::num_rows($result)) {
$row = Database::fetch_array($result);
return $row['count'];
}

Loading…
Cancel
Save