aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/google.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-08-24 11:22:43 -0400
committerlolcat <will@lolcat.ca>2025-08-24 11:22:43 -0400
commitdcf59018092421d5e036df11ee72796a12079693 (patch)
tree03d5d0958bb7089783a8297ac0fd6ce6edc35e5b /scraper/google.php
parentaa9806300aa83278f65c37664e404cf233d74efb (diff)
fix warning in goolag scraper
Diffstat (limited to 'scraper/google.php')
-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