[GoogleSearchBridge] Replace 'div[id=ires]' with 'div[id=res]' (#1329)

This commit is contained in:
Joseph 2019-10-16 19:44:41 +00:00 committed by Lyra
parent 46873e14fe
commit 59be6bded2

View file

@ -28,7 +28,7 @@ class GoogleSearchBridge extends BridgeAbstract {
$html = getSimpleHTMLDOM($this->getURI()) $html = getSimpleHTMLDOM($this->getURI())
or returnServerError('No results for this query.'); or returnServerError('No results for this query.');
$emIsRes = $html->find('div[id=ires]', 0); $emIsRes = $html->find('div[id=res]', 0);
if(!is_null($emIsRes)) { if(!is_null($emIsRes)) {
foreach($emIsRes->find('div[class=g]') as $element) { foreach($emIsRes->find('div[class=g]') as $element) {