aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
Diffstat (limited to 'scraper')
-rw-r--r--scraper/google.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/scraper/google.php b/scraper/google.php
index 0c73ea0..5dfece2 100644
--- a/scraper/google.php
+++ b/scraper/google.php
@@ -1804,11 +1804,15 @@ class google{
$this->fuckhtml
->getTextContent(
$fact
- )
+ ),
+ 2
);
- $table[trim(preg_replace('/\s+/', " ", $fact[0]))] =
- trim(preg_replace('/\s+/', " ", $fact[1]));
+ if(count($fact) === 2){
+
+ $table[trim(preg_replace('/\s+/', " ", $fact[0]))] =
+ trim(preg_replace('/\s+/', " ", $fact[1]));
+ }
}
$this->fuckhtml->load($box);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage