correct exceptions for Questgroupspictures and Questtexts

This commit is contained in:
coderkun 2014-03-04 11:46:09 +01:00
commit 4085457bb1
2 changed files with 7 additions and 2 deletions

View file

@ -47,7 +47,12 @@
$questgroup = $this->Questgroups->getQuestgroupByUrl($seminary['id'], $questgroupUrl);
// Get Picture
$picture = $this->Media->getMediaById($questgroup['questgroupspicture_id']);
$picture = null;
try {
$picture = $this->Media->getMediaById($questgroup['questgroupspicture_id']);
}
catch(\nre\exceptions\IdNotFoundException $e) {
}
// Pass data to view

View file

@ -163,7 +163,7 @@
$sidequestId
);
if(empty($data)) {
throw new \nre\exceptions\IdNotFoundException();
throw new \nre\exceptions\IdNotFoundException($sidequestId);
}