Permalink
Browse files

404

  • Loading branch information...
1 parent eead1b5 commit 60eea7a14d4cea58f812d87e34e8f5462ed42cc5 @juzna committed Aug 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/presenters/RecordPresenter.php
@@ -13,6 +13,7 @@ class RecordPresenter extends BasePresenter
public function renderDefault($hash)
{
$this->template->record = $record = $this->context->recordService->fetch($hash);
+ if ( ! $record) throw new \Nette\Application\BadRequestException("Record not found", 404);
}

0 comments on commit 60eea7a

Please sign in to comment.