mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -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
|
@ -27,7 +27,7 @@ class OpdsFeed extends AtomFeed{
|
|||
protected function SaveUpdated(string $entryId, DateTime $updated): void{
|
||||
// Only save the updated timestamp for the given entry ID in this file
|
||||
foreach($this->Entries as $entry){
|
||||
if(is_a($entry, 'OpdsNavigationEntry')){
|
||||
if($entry instanceof OpdsNavigationEntry){
|
||||
if($entry->Id == SITE_URL . $entryId){
|
||||
$entry->Updated = $updated;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue