mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
fix prefinery bug
This commit is contained in:
parent
04eb283bf2
commit
785183a633
1 changed files with 1 additions and 8 deletions
9
lib/thirdparty/Prefinery.class.php
vendored
9
lib/thirdparty/Prefinery.class.php
vendored
|
@ -149,15 +149,8 @@ class Prefinery
|
|||
);
|
||||
}
|
||||
|
||||
protected static function decodePrefineryResponse($rawBody, $allowEmptyResponse = true)
|
||||
protected static function decodePrefineryResponse($data, $allowEmptyResponse = true)
|
||||
{
|
||||
if (!$rawBody)
|
||||
{
|
||||
throw new PrefineryException('Empty cURL response.');
|
||||
}
|
||||
|
||||
$data = json_decode($rawBody, true);
|
||||
|
||||
if (!$allowEmptyResponse && !$data && $data !== [])
|
||||
{
|
||||
throw new PrefineryException('Received empty or improperly encoded response.');
|
||||
|
|
Loading…
Add table
Reference in a new issue