From db265e5dee6aa4b446c029885bf5bfbad4ae91a4 Mon Sep 17 00:00:00 2001 From: serhack Date: Mon, 14 Aug 2017 10:52:26 +0200 Subject: [PATCH] Update monero_payments.php --- monero/include/monero_payments.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 3f7c8ab..1f9218d 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -397,6 +397,11 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) { } public function getamountinfo(){ $wallet_amount = $this->monero_daemon->getbalance(); + if(isset($wallet_amount)){ + $this->log->add('Monero_gateway','[ERROR] Connection wi$ +$wallet_amount['balance'] = "0"; +$wallet_amount['unlocked_balance'] = "0"; +} $real_wallet_amount = $wallet_amount['balance'] / 1000000000000; $real_amount_rounded = round($real_wallet_amount, 6);