mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
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:
parent
e26ba4d849
commit
a1f6db1775
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user