add some checks to not throw IdNotFound exception for empty Quests (fixes #9)
This commit is contained in:
parent
8b01676622
commit
dec602da34
7 changed files with 68 additions and 52 deletions
|
|
@ -134,12 +134,16 @@
|
|||
$correctAnswersCount += $this->isMatching($field['regex'], $field['answer']);
|
||||
}
|
||||
}
|
||||
|
||||
// Show count
|
||||
$showcount = (count($this->request->getGetParams()) > 1);
|
||||
|
||||
|
||||
// Pass data to view
|
||||
$this->set('task', $task);
|
||||
$this->set('fields', $fields);
|
||||
$this->set('count', $correctAnswersCount);
|
||||
$this->set('showcount', $showcount);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue