fix for error message

This commit is contained in:
jamiesensei 2007-11-26 13:32:23 +00:00
parent fb656c9f40
commit 0f6475b396

View file

@ -1963,7 +1963,7 @@ function question_has_capability_on($question, $cap, $cachecat = -1){
if (!is_object($question)){ if (!is_object($question)){
if (!isset($questions[$question])){ if (!isset($questions[$question])){
if (!$questions[$question] = get_record('question', 'id', $question)){ if (!$questions[$question] = get_record('question', 'id', $question)){
print_error('invalidcategory', 'quiz'); print_error('questiondoesnotexist', 'question');
} }
} }
$question = $questions[$question]; $question = $questions[$question];