forked from lolcat/4get
error handling for invalid pagetype
This commit is contained in:
@@ -1020,7 +1020,15 @@ class google{
|
||||
self::is_class
|
||||
),
|
||||
"div"
|
||||
)[1];
|
||||
);
|
||||
|
||||
if(!isset($description[1])){
|
||||
|
||||
throw new Exception("Google returned an unsupported page format (will fix)");
|
||||
}else{
|
||||
|
||||
$description = $description[1];
|
||||
}
|
||||
|
||||
// get date (rare)
|
||||
$date =
|
||||
|
Reference in New Issue
Block a user