Skip to content

Commit

Permalink
Remove error log
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperstrongBE committed Nov 20, 2024
1 parent da87cad commit b494d76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/controllers/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ private static function GetWalletConfig (){

$xprcheckoutGateway = WC()->payment_gateways->payment_gateways()['xprcheckout'];
$rawWallets = $xprcheckoutGateway->get_option('wallets');


$defaultWallet = [
'testnet'=>[
'store'=>'',
Expand All @@ -154,9 +156,10 @@ private static function GetWalletConfig (){
'verified'=>false
],
];
if (is_null($rawWallets)) return $defaultWallet;
if (empty($rawWallets)) return $defaultWallet;

$unserializedWallet = unserialize($rawWallets);
if (!is_null($unserializedWallet)) return $defaultWallet;
if (is_null($unserializedWallet)) return $defaultWallet;
return $unserializedWallet;

}
Expand Down

0 comments on commit b494d76

Please sign in to comment.