Skip to content

Commit 7d62547

Browse files
committed
use empty instead of null check
1 parent 8708c34 commit 7d62547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/FilesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function fileAction(Request $request, string $file): BinaryFileResponse
7878
}
7979

8080
// Do not allow files that are not in the database or don't have a parent
81-
if (null === $filesModel || null === $filesModel->pid) {
81+
if (null === $filesModel || empty($filesModel->pid)) {
8282
throw new PageNotFoundException();
8383
}
8484

0 commit comments

Comments
 (0)