Skip to content

Commit

Permalink
Merge pull request #40 from nowackipawel/patch-1
Browse files Browse the repository at this point in the history
deprecated array_key_exists
  • Loading branch information
doersf authored Jun 3, 2020
2 parents d1c9007 + 397115f commit 3f300cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/block_io.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private function _withdraw($name, $args = array())

$response = $this->_request($name,$args);

if ($response->status == 'success' && array_key_exists('reference_id', $response->data))
if ($response->status == 'success' && property_exists($response->data, 'reference_id'))
{ // we have signatures to append

// get our encryption key ready
Expand Down Expand Up @@ -189,7 +189,7 @@ private function _sweep($name, $args = array())

$response = $this->_request($name,$args);

if ($response->status == 'success' && array_key_exists('reference_id', $response->data))
if ($response->status == 'success' && property_exists($response->data, 'reference_id'))
{ // we have signatures to append

// grab inputs
Expand Down Expand Up @@ -1623,4 +1623,4 @@ function strToHex($string)
return $hex;
}

?>
?>

0 comments on commit 3f300cd

Please sign in to comment.