mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-28 16:01:26 +00:00
fix php versioning issue
This commit is contained in:
parent
99b30226fc
commit
578e62cac6
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class DownloadActions extends Actions
|
||||||
throw new PrefinerySubscribeException('Empty cURL response.');
|
throw new PrefinerySubscribeException('Empty cURL response.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = json_decode($body, JSON_OBJECT_AS_ARRAY);
|
$data = json_decode($body, true);
|
||||||
|
|
||||||
if ($data && is_array($data) && count($data) && isset($data[0]['share_link']))
|
if ($data && is_array($data) && count($data) && isset($data[0]['share_link']))
|
||||||
{
|
{
|
||||||
|
@ -165,7 +165,7 @@ class DownloadActions extends Actions
|
||||||
throw new PrefinerySubscribeException('Empty cURL response.');
|
throw new PrefinerySubscribeException('Empty cURL response.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = json_decode($body, JSON_OBJECT_AS_ARRAY);
|
$data = json_decode($body, true);
|
||||||
|
|
||||||
if (!$data || !isset($data['share_link']))
|
if (!$data || !isset($data['share_link']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue