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

fix: php errors (notices) (#3115)

This commit is contained in:
Dag
2022-10-26 00:47:45 +02:00
committed by GitHub
parent 8795cb252f
commit 52af2ae34c
9 changed files with 33 additions and 20 deletions

View File

@@ -23,6 +23,7 @@ class GoogleSearchBridge extends BridgeAbstract
public function collectData()
{
// todo: wrap this in try..catch because 429 too many requests happens a lot
$dom = getSimpleHTMLDOM($this->getURI(), ['Accept-language: en-US']);
if (!$dom) {
returnServerError('No results for this query.');