summaryrefslogtreecommitdiff
path: root/scraper/google.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/google.php')
-rw-r--r--scraper/google.php32
1 files changed, 17 insertions, 15 deletions
diff --git a/scraper/google.php b/scraper/google.php
index d0e90ca..ca77231 100644
--- a/scraper/google.php
+++ b/scraper/google.php
@@ -1616,21 +1616,23 @@ class google{
$imgvl
);
- $imgvl = $imgvl[1];
-
- $params["async"] = "_id:islrg_c,_fmt:html";
- $params["asearch"] = "ichunklite";
- $params["ved"] = $ved;
- $params["vet"] = "1" . $ved . "..i";
- $params["start"] = 100;
- $params["ijn"] = 1;
- $params["imgvl"] = $imgvl;
-
- $out["npt"] =
- $this->nextpage->store(
- json_encode($params),
- "images"
- );
+ if(isset($imgvl[1])){
+ $imgvl = $imgvl[1];
+
+ $params["async"] = "_id:islrg_c,_fmt:html";
+ $params["asearch"] = "ichunklite";
+ $params["ved"] = $ved;
+ $params["vet"] = "1" . $ved . "..i";
+ $params["start"] = 100;
+ $params["ijn"] = 1;
+ $params["imgvl"] = $imgvl;
+
+ $out["npt"] =
+ $this->nextpage->store(
+ json_encode($params),
+ "images"
+ );
+ }
}
}