mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Remove checks against EBOOK_EARLIEST_CREATION_DATE
This commit is contained in:
parent
432723eafe
commit
6bec232d37
6 changed files with 6 additions and 7 deletions
|
@ -1207,7 +1207,7 @@ class Ebook{
|
|||
}
|
||||
|
||||
if(isset($this->EbookCreated)){
|
||||
if($this->EbookCreated > $now || $this->EbookCreated < EBOOK_EARLIEST_CREATION_DATE){
|
||||
if($this->EbookCreated > $now){
|
||||
$error->Add(new Exceptions\InvalidEbookCreatedDatetimeException($this->EbookCreated));
|
||||
}
|
||||
}
|
||||
|
@ -1216,7 +1216,7 @@ class Ebook{
|
|||
}
|
||||
|
||||
if(isset($this->EbookUpdated)){
|
||||
if($this->EbookUpdated > $now || $this->EbookUpdated < EBOOK_EARLIEST_CREATION_DATE){
|
||||
if($this->EbookUpdated > $now){
|
||||
$error->Add(new Exceptions\InvalidEbookUpdatedDatetimeException($this->EbookUpdated));
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue