mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
fix for error message
This commit is contained in:
parent
fb656c9f40
commit
0f6475b396
@ -1963,7 +1963,7 @@ function question_has_capability_on($question, $cap, $cachecat = -1){
|
||||
if (!is_object($question)){
|
||||
if (!isset($questions[$question])){
|
||||
if (!$questions[$question] = get_record('question', 'id', $question)){
|
||||
print_error('invalidcategory', 'quiz');
|
||||
print_error('questiondoesnotexist', 'question');
|
||||
}
|
||||
}
|
||||
$question = $questions[$question];
|
||||
|
Loading…
x
Reference in New Issue
Block a user