From dcf59018092421d5e036df11ee72796a12079693 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 24 Aug 2025 11:22:43 -0400 Subject: [PATCH] fix warning in goolag scraper --- scraper/google.php | 10 +++++++--- 1 file 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);