From c047359379dfe3f9ae46f3c351190afe197edb7b Mon Sep 17 00:00:00 2001 From: ArqTras <33489188+ArqTras@users.noreply.github.com> Date: Mon, 11 Feb 2019 18:05:37 +0100 Subject: [PATCH] messed with hosting --- include/class-arqma-gateway.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/class-arqma-gateway.php b/include/class-arqma-gateway.php index 880c2c3..2923f07 100644 --- a/include/class-arqma-gateway.php +++ b/include/class-arqma-gateway.php @@ -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; @@ -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');