RPC error description fetching bugfix
This commit is contained in:
parent
62caab773f
commit
b5786a6502
@ -88,7 +88,7 @@ class RPCErrorException extends \Exception
|
|||||||
|| $code === 500
|
|| $code === 500
|
||||||
) {
|
) {
|
||||||
$res = json_decode(@file_get_contents('https://rpc.pwrtelegram.xyz/?method='.$method.'&code='.$code.'&error='.$error), true);
|
$res = json_decode(@file_get_contents('https://rpc.pwrtelegram.xyz/?method='.$method.'&code='.$code.'&error='.$error), true);
|
||||||
if (isset($res['ok']) && $res['ok']) {
|
if (isset($res['ok']) && $res['ok'] && isset($res['result'])) {
|
||||||
$description = $res['result'];
|
$description = $res['result'];
|
||||||
|
|
||||||
self::$descriptions[$error] = $description;
|
self::$descriptions[$error] = $description;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user