mirror of
https://git.bakhai.co.in/FbIN/4Get.git
synced 2025-11-05 20:31:30 +05:30
parent
679d7607cb
commit
5794bd1346
1 changed files with 3 additions and 2 deletions
|
|
@ -583,7 +583,8 @@ class google_api{
|
||||||
|
|
||||||
if(!isset($json["items"])){
|
if(!isset($json["items"])){
|
||||||
|
|
||||||
throw new Exception("Failed to access items array");
|
// google just doesnt return items when theres no results
|
||||||
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($json["items"] as $result){
|
foreach($json["items"] as $result){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue