mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Use instanceof instead of is_a() to check some classes
This commit is contained in:
parent
1627c99a46
commit
2fc92b8768
4 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ class AtomFeed extends Feed{
|
|||
$currentEntries = [];
|
||||
foreach($this->Entries as $entry){
|
||||
$obj = new StdClass();
|
||||
if(is_a($entry, 'Ebook')){
|
||||
if($entry instanceof Ebook){
|
||||
$obj->Updated = $entry->Updated->format('Y-m-d\TH:i:s\Z');
|
||||
$obj->Id = SITE_URL . $entry->Url;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue