mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Some type check fixes
This commit is contained in:
parent
1979b27432
commit
79fdc8c20f
4 changed files with 21 additions and 13 deletions
|
@ -7,6 +7,10 @@ $ebook = null;
|
|||
|
||||
try{
|
||||
$ebook = Ebook::GetByIdentifier($identifier);
|
||||
|
||||
if($ebook->EbookPlaceholder === null){
|
||||
throw new Exceptions\EbookNotFoundException();
|
||||
}
|
||||
}
|
||||
catch(Exceptions\EbookNotFoundException){
|
||||
Template::Emit404();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue