mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-07 00:56:34 +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:
@@ -277,7 +277,7 @@ class WikipediaBridge extends BridgeAbstract
|
||||
switch ($subject) {
|
||||
case WIKIPEDIA_SUBJECT_TFA:
|
||||
$element = $html->find('div[id=mp-tfa]', 0);
|
||||
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, -1);
|
||||
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, '...', -1);
|
||||
break;
|
||||
case WIKIPEDIA_SUBJECT_DYK:
|
||||
$element = $html->find('div[id=mp-dyk]', 0);
|
||||
@@ -296,7 +296,7 @@ class WikipediaBridge extends BridgeAbstract
|
||||
switch ($subject) {
|
||||
case WIKIPEDIA_SUBJECT_TFA:
|
||||
$element = $html->find('div[id=main-tfa]', 0);
|
||||
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, -1);
|
||||
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, '...', -1);
|
||||
break;
|
||||
case WIKIPEDIA_SUBJECT_DYK:
|
||||
$element = $html->find('div[id=main-dyk]', 0);
|
||||
|
Reference in New Issue
Block a user