diff --git a/controller/file.php b/controller/file.php index 76ce3ac3..abbb3997 100644 --- a/controller/file.php +++ b/controller/file.php @@ -76,6 +76,10 @@ protected function _actionRender(KControllerContextInterface $context) { $file = $this->getModel()->fetch(); + if ($file->isNew()) { + throw new KControllerExceptionResourceNotFound('File not found'); + } + try { $this->getResponse()