-
Bug
-
Resolution: Fixed
-
Minor
-
2.3
-
None
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
With full-on debugging Questionnaire module yields Strict Standards errors as follows:
1. Strict Standards: Creating default object from empty value in [...]/mod/questionnaire/view.php on line 23
Should presumably now read:
if (!isset($SESSION->questionnaire)) $SESSION->questionnaire = new stdClass();
$SESSION->questionnaire->current_tab = 'view';
2. Strict Standards: Creating default object from empty value in [...]/mod/questionnaire/questiontypes/questiontypes.class.php on line 205
Perhaps get_choices function should now read:
function get_choices() {
global $DB;
$this->choices = array();
if ($choices = $DB->get_records('questionnaire_quest_choice', array('question_id' => $this->id), 'id ASC')) {
foreach ($choices as $choice)
}
}
3. Strict Standards: Redefining already defined constructor for class questionnaire_question in [...]/mod/questionnaire/questiontypes/questiontypes.class.php on line 196
Likely the earlier constructor "function questionnaire_question" should now be renamed __construct, as PHP 5.3 is required anyway, and the "fake" constructor removed.
Regards,
John
- has a non-specific relationship to
-
CONTRIB-3696 Questionnaire module reports undefined capability mod/questionnaire:addinstance in 2.3dev
-
- Closed
-