Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using multichoice questions in quiz. If I leave any question blank, I am getting warning on quiz result page - one each for all alternatives of questions left blank.
Warning: in_array() expects parameter 2 to be array, null given in Drupal\quizz_multichoice\MultichoiceResponse->getFeedbackValues() (line 111 of /var/www/html/intranet/sites/all/modules/quizz_multichoice/src/MultichoiceResponse.php).
I think it may be because of answer object that is passed to in_array is null. Might have to add a checking for null before calling.
Comments