update 2024-01-24 15:37:32
This commit is contained in:
parent
b4ed6ae4a5
commit
67794f035c
@ -85,10 +85,13 @@ final class DailyScripture
|
||||
{
|
||||
$response = $http->get($config->daily_scripture_url);
|
||||
|
||||
$body = $response->body ?? null;
|
||||
$code = $response->code ?? 400;
|
||||
|
||||
// make sure we got the correct response
|
||||
if ($response->code == 200 && isset($response->body) && is_string($response->body))
|
||||
if ($code == 200 && is_string($body))
|
||||
{
|
||||
$this->reference = $response->body;
|
||||
$this->reference = $body;
|
||||
|
||||
$this->parse($this->reference);
|
||||
}
|
||||
|
@ -59,10 +59,13 @@
|
||||
{
|
||||
$response = $http->get($config->daily_scripture_url);
|
||||
|
||||
$body = $response->body ?? null;
|
||||
$code = $response->code ?? 400;
|
||||
|
||||
// make sure we got the correct response
|
||||
if ($response->code == 200 && isset($response->body) && is_string($response->body))
|
||||
if ($code == 200 && is_string($body))
|
||||
{
|
||||
$this->reference = $response->body;
|
||||
$this->reference = $body;
|
||||
|
||||
$this->parse($this->reference);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user