We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c09f3b commit 86f83efCopy full SHA for 86f83ef
service/lib/ethplorer.php
@@ -226,8 +226,8 @@ public function getTransactionDetails($hash){
226
}
227
$this->oCache->save($cache, $result);
228
229
- if(is_array($result) && is_array($tx)){
230
- $result['tx']['confirmations'] = $this->oCache->get('lastBlock') - $tx['blockNumber'] + 1;
+ if(is_array($result) && is_array($result['tx'])){
+ $result['tx']['confirmations'] = $this->oCache->get('lastBlock') - $result['tx']['blockNumber'] + 1;
231
232
return $result;
233
0 commit comments