diff --git a/src/Controller/FilesController.php b/src/Controller/FilesController.php index 63c8147..c91f0e3 100644 --- a/src/Controller/FilesController.php +++ b/src/Controller/FilesController.php @@ -78,7 +78,7 @@ public function fileAction(Request $request, string $file): BinaryFileResponse } // Do not allow files that are not in the database or don't have a parent - if (null === $filesModel || null === $filesModel->pid) { + if (null === $filesModel || empty($filesModel->pid)) { throw new PageNotFoundException(); }