From 7358d21b666a5e779461b6a374e062fc60a29f34 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Mon, 7 Aug 2017 12:17:51 -0500 Subject: [PATCH] Quick typo fix Adds the '!' operator in front of the if(isset($array_integrated_address)) expression so that the error message will only show up if it is NOT set --- monero/include/monero_payments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 359d52c..6640332 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -244,7 +244,7 @@ class Monero_Gateway extends WC_Payment_Gateway $payment_id = $this->set_paymentid_cookie(); $uri = "monero:$address?amount=$amount?payment_id=$payment_id"; $array_integrated_address = $this->monero_daemon->make_integrated_address($payment_id); - if(isset($array_integrated_address)){ + if(!isset($array_integrated_address)){ $this->log->add('Monero_Gateway', '[ERROR] Unable to getting integrated address '); } $message = $this->verify_payment($payment_id, $amount_xmr2, $order);