Closed (fixed)
Project:
Quiz
Version:
6.x-3.3
Component:
Code - Quiz module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2009 at 15:24 UTC
Updated:
11 May 2010 at 11:51 UTC
When assigning only random questions from a choosen term and zero static questions, I get the following error:
warning: Invalid argument supplied for foreach() in /var/www/html/public/_testomgeving/quiz/sites/all/modules/quiz/quiz.admin.inc on line 367.
The variable $form_state['values']['weights'] in line 367 is NULL.
I don't get this error if I have at least one static question (with the same random settings). So I assume it's because there are no static questions (which could have weight) but only random questions (which can't have weight). But since I am not a programmer, I could be wrong here.
MySQL 5.0.45 | PHP 5.2.4
Comments
Comment #1
falcon commentedThis has been fixed in Quiz 4.