yep api fix
This commit is contained in:
@@ -449,8 +449,6 @@ class yep{
|
|||||||
// add api key
|
// add api key
|
||||||
$key_data = $this->backend->get_key();
|
$key_data = $this->backend->get_key();
|
||||||
|
|
||||||
print_r($filters);
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
$json =
|
$json =
|
||||||
@@ -504,6 +502,15 @@ class yep{
|
|||||||
|
|
||||||
foreach($json["results"] as $item){
|
foreach($json["results"] as $item){
|
||||||
|
|
||||||
|
if(
|
||||||
|
$item["url"] === null ||
|
||||||
|
$item["url"] == ""
|
||||||
|
){
|
||||||
|
|
||||||
|
// sometimes API fucks up
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$out["web"][] = [
|
$out["web"][] = [
|
||||||
"title" => $item["title"],
|
"title" => $item["title"],
|
||||||
"description" => $item["description"],
|
"description" => $item["description"],
|
||||||
|
|||||||
Reference in New Issue
Block a user