mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 23:04:57 -04:00
Add newsletter management functionality
This commit is contained in:
parent
90ee0a93c9
commit
b0197d189a
57 changed files with 1017 additions and 143 deletions
|
@ -26,7 +26,7 @@ class OpdsFeed{
|
|||
$xml->registerXPathNamespace('schema', 'http://schema.org/');
|
||||
$entries = $xml->xpath('/feed/entry');
|
||||
|
||||
if($entries === false){
|
||||
if(!$entries){
|
||||
$entries = [];
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ class OpdsFeed{
|
|||
// while updating it at the same time.
|
||||
$elements = $xml->xpath('/feed/entry/updated');
|
||||
|
||||
if($elements === false){
|
||||
if(!$elements){
|
||||
$elements = [];
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ class OpdsFeed{
|
|||
$xml = new SimpleXMLElement(str_replace('xmlns=', 'ns=', file_get_contents($parentFilepath)));
|
||||
|
||||
$feedEntries = $xml->xpath('/feed/entry[id="' . $this->Id . '"]/updated');
|
||||
if($feedEntries === false){
|
||||
if(!$feedEntries){
|
||||
$feedEntries = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue