fixed bugs
This commit is contained in:
@@ -61,13 +61,12 @@ class sliderkz extends searchBase implements searchInterface
|
||||
try {
|
||||
$response = $this->client->request('GET', $this->searchUrl, ['query' => $this->query]);
|
||||
$resp = $response->toArray();
|
||||
} catch (ExceptionInterface $e) {
|
||||
$this->errors[] = $e->getMessage();
|
||||
return [];
|
||||
}
|
||||
if (isset($resp['audios'])) {
|
||||
return array_values($resp["audios"])[0];
|
||||
}
|
||||
} catch (ExceptionInterface $e) {
|
||||
$this->errors[] = $e->getMessage();
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user