Nasty hack fix for MDL-16567 - I am hoping Jamie will come up with a proper fix soon, but I am about to demo this.

This commit is contained in:
tjhunt 2008-09-18 12:47:12 +00:00
parent e26ba4d849
commit a1f6db1775

View File

@ -55,6 +55,12 @@ class qstats{
if ($this->states === false){
print_error('errorstatisticsquestions', 'quiz_statistics');
}
// Nasty hack fix for MDL-16567 - TODO a proper fix.
foreach ($this->states as $id => $state) {
if (!isset($this->questions[$state->question])) {
unset($this->states[$id]);
}
}
}
function _initial_states_walker($state, &$stats, $positionstat = true){