From 397115f80f82e3bd1a5706a2d001acd5805e44fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Nowacki?= Date: Sat, 30 May 2020 15:07:18 +0200 Subject: [PATCH] deprecated array_key_exists array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead --- lib/block_io.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/block_io.php b/lib/block_io.php index 98d9db2..c3919aa 100644 --- a/lib/block_io.php +++ b/lib/block_io.php @@ -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 @@ -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 @@ -1623,4 +1623,4 @@ function strToHex($string) return $hex; } -?> \ No newline at end of file +?>