From 06f397a3573269e993b1b93744ee4ef39af09a0b Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 31 Mar 2016 20:19:34 +0200 Subject: [PATCH] cryptopia: double check orders api result in trading --- web/yaamp/core/trading/cryptopia_trading.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/yaamp/core/trading/cryptopia_trading.php b/web/yaamp/core/trading/cryptopia_trading.php index 3b24025..7396290 100644 --- a/web/yaamp/core/trading/cryptopia_trading.php +++ b/web/yaamp/core/trading/cryptopia_trading.php @@ -154,6 +154,7 @@ function doCryptopiaTrading($quick=false) foreach($list as $db_order) { $found = false; + if(is_object($orders) && $orders->Success) foreach($orders->Data as $order) { if(stripos($order->Type, 'Sell') === false) continue; if($order->OrderId == $db_order->uuid) {