Skip to content

Commit

Permalink
Исправлена ошибка условия
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegEryomin authored May 30, 2023
1 parent c0f1d3b commit 84b1946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ function bsuselection_cm_info_view(\cm_info $cm)
$butdis = 1;
foreach ($options as $key => $value){
$grades = $DB->get_records_menu('quiz_grades', ['quiz' => $value->quizid, 'userid' => $USER->id], 'grade', 'id,grade');
if ($value->maxgrade >= max($grades)){
$options[$key]->radiodis = 1;
}else{
if (max($grades) >= $value->maxgrade){
$options[$key]->radiodis = 0;
}else{
$options[$key]->radiodis = 1;
$butdis = 0;
}

Expand Down

0 comments on commit 84b1946

Please sign in to comment.