Skip to content

Commit

Permalink
Merge pull request #1 from ArqTras/master
Browse files Browse the repository at this point in the history
messed with hosting
  • Loading branch information
ArqTras committed Feb 11, 2019
2 parents ad3336f + c047359 commit e8286c5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions include/class-arqma-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Arqma_Gateway extends WC_Payment_Gateway
private static $_title = 'Arqma Payments';
private static $_method_title = 'Arqma Payments';
private static $_method_description = 'Arqma Payments Gateway Plug-in for WooCommerce.';
private static $_errors = [];
private static $_errors = array();

private static $discount = false;
private static $valid_time = null;
Expand Down Expand Up @@ -468,10 +468,7 @@ protected static function get_payment_details($order_id)
$heights[] = $tx->height;
}

usort($txs, function($a, $b) {
if($a['height'] == 0) return -1;
return $b['height'] - $a['height'];
});


if(count($heights) && !in_array(0, $heights)) {
$height = get_transient('arqma_gateway_network_height');
Expand Down

0 comments on commit e8286c5

Please sign in to comment.