From beaabd942183c98e2b492bd6c354f8598c925b11 Mon Sep 17 00:00:00 2001 From: sowich Date: Mon, 10 Oct 2016 21:19:39 +0300 Subject: [PATCH] bug fix --- whmcs.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whmcs.class.php b/whmcs.class.php index a0b34da..6c3a0a9 100644 --- a/whmcs.class.php +++ b/whmcs.class.php @@ -557,7 +557,7 @@ public function getOrders($uid = 0, $orderId = 0, $status = '', $start = 0, $lim } if($orderId > 0){ - $params['id'] = $invoiceId; + $params['id'] = $orderId; } if($status == "Pending" || $status == "Active" || $status == "Fraud" || $status == "Cancelled"){