Some type check fixes

This commit is contained in:
Alex Cabal 2024-12-13 23:21:04 -06:00
parent 1979b27432
commit 79fdc8c20f
4 changed files with 21 additions and 13 deletions

View file

@ -7,6 +7,10 @@ $ebook = null;
try{
$ebook = Ebook::GetByIdentifier($identifier);
if($ebook->EbookPlaceholder === null){
throw new Exceptions\EbookNotFoundException();
}
}
catch(Exceptions\EbookNotFoundException){
Template::Emit404();