mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
fix for error message
This commit is contained in:
parent
fb656c9f40
commit
0f6475b396
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue