MDL-20636 Fix codechecker issues in the question behaviours.

This commit is contained in:
Tim Hunt
2011-04-08 07:24:24 +01:00
parent 9447399c11
commit 1631ceeaec
21 changed files with 147 additions and 86 deletions
@@ -75,7 +75,8 @@ class qbehaviour_interactivecountback extends qbehaviour_interactive {
$responses = array();
$lastsave = array();
foreach ($this->qa->get_step_iterator() as $step) {
if ($step->has_behaviour_var('submit') && $step->get_state() != question_state::$invalid) {
if ($step->has_behaviour_var('submit') &&
$step->get_state() != question_state::$invalid) {
$responses[] = $step->get_qt_data();
$lastsave = array();
} else {