1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 00:27:27 +02:00

fix: various bug fixes (#3102)

* fix: Undefined offset: 4

* fix: Trying to access array offset on value of type bool

* fix: Undefined variable: photo at bridges/TelegramBridge.php line 287

* fix: Trying to get property innertext of non-object at bridges/ZDNetBridge.php line 186

* fix: Undefined index: Category at bridges/UnraidCommunityApplicationsBridge.php line 42

* fix: Undefined index: fullUrl at bridges/EuronewsBridge.php line 61
This commit is contained in:
Dag
2022-10-16 20:26:33 +02:00
committed by GitHub
parent ffbc107687
commit 37f1ab726b
6 changed files with 82 additions and 71 deletions

View File

@@ -180,10 +180,16 @@ class ZDNetBridge extends FeedExpander
$article = getSimpleHTMLDOMCached($item['uri']);
if (!$article) {
returnServerError('Could not request ZDNet: ' . $url);
Logger::info('Unable to parse the dom from ' . $item['uri']);
return $item;
}
$contents = $article->find('article', 0)->innertext;
$articleTag = $article->find('article', 0) ?? $article->find('.c-articleContent', 0);
if (!$articleTag) {
Logger::info('Unable to parse <article> tag in ' . $item['uri']);
return $item;
}
$contents = $articleTag->innertext;
foreach (
[
'<div class="shareBar"',