diff options
| author | lolcat <will@lolcat.ca> | 2025-08-24 11:22:43 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-08-24 11:22:43 -0400 |
| commit | dcf59018092421d5e036df11ee72796a12079693 (patch) | |
| tree | 03d5d0958bb7089783a8297ac0fd6ce6edc35e5b | |
| parent | aa9806300aa83278f65c37664e404cf233d74efb (diff) | |
fix warning in goolag scraper
| -rw-r--r-- | scraper/google.php | 10 |
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); |
