From 0d29b61bb378540ad05faebc1f647d77a93ce70a Mon Sep 17 00:00:00 2001 From: vdbhb59 Date: Tue, 26 Aug 2025 19:27:05 +0530 Subject: [PATCH] Fix warning in foogle scraper https://git.lolcat.ca/lolcat/4get/commit/dcf59018092421d5e036df11ee72796a12079693 --- scraper/google.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scraper/google.php b/scraper/google.php index 693f707..4742971 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);