Explorar el Código

fix warning in goolag scraper

lolcat hace 11 meses
padre
commit
dcf5901809
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      scraper/google.php

+ 7 - 3
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);