Skip to content
Snippets Groups Projects
Commit 43b2be9e authored by falcon's avatar falcon
Browse files

#824762 by fuzzy76, pebosi: Fixed: E_ALL Compliance

parent bb990d60
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
* The system remembers what quizzes a user has been involved in lately. This constant determines
* how many quizzes the system will remember for each user
*/
define(QUIZ_QUESTION_NUM_LATEST, 10);
define('QUIZ_QUESTION_NUM_LATEST', 10);
/**
* Implementation of hook_help().
......
......@@ -1245,7 +1245,7 @@ function quiz_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
break;
}
}
if ($node->is_quiz_question) {
if (isset($node->is_quiz_question)) {
if (variable_get('quiz_auto_revisioning', 1)) {
$node->revision = (quiz_question_has_been_answered($node)) ? 1 : 0;
}
......@@ -1515,6 +1515,9 @@ function quiz_take_quiz($quiz) {
return array('body' => array('#value' => t('This quiz is closed')));
}
}
$q_passed_validation = FALSE;
if (quiz_availability($quiz) !== TRUE) {
drupal_set_message(t('This quiz is not available anymore.'), 'error');
return array('body' => array('#value' => t('This quiz is closed')));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment