mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-26 15:18:40 +02:00
fix: various php notices (#3145)
* fix: notice * fix: Trying to get property content of non-object at bridges/PcGamerBridge.php line 36 * fix: better exception message * fix: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
This commit is contained in:
parent
734a5868b8
commit
95c199c2eb
5 changed files with 13 additions and 8 deletions
|
@ -146,15 +146,15 @@ abstract class FeedExpander extends BridgeAbstract
|
|||
$this->collectAtom1($rssContent, $maxItems);
|
||||
break;
|
||||
default:
|
||||
Debug::log('Unknown feed format/version');
|
||||
throw new \Exception('The feed format is unknown!');
|
||||
Debug::log(sprintf('Unable to detect feed format from `%s`', $url));
|
||||
throw new \Exception(sprintf('Unable to detect feed format from `%s`', $url));
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collect data from a RSS 1.0 compatible feed
|
||||
* Collect data from an RSS 1.0 compatible feed
|
||||
*
|
||||
* @link http://web.resource.org/rss/1.0/spec RDF Site Summary (RSS) 1.0
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue