mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
explorer: prevent php error on invalid txid
This commit is contained in:
parent
9d4c4d41c7
commit
6060d42ca3
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class ExplorerController extends CommonController
|
|||
$remote = new Bitcoin($coin->rpcuser, $coin->rpcpasswd, $coin->rpchost, $coin->rpcport);
|
||||
$tx = $remote->getrawtransaction($txid, 1);
|
||||
|
||||
$hash = $tx['blockhash'];
|
||||
$hash = arraySafeVal($tx,'blockhash');
|
||||
}
|
||||
|
||||
if($coin && !empty($hash) && ctype_alnum($hash))
|
||||
|
|
Loading…
Add table
Reference in a new issue