From b9e91f02e4ffe9e200d5b533526c2a2a936e0a73 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 13 Oct 2017 11:34:43 +0300 Subject: [PATCH] Fix plan parsing --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 98992cae1c77..c950bca4b915 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -719,7 +719,7 @@ class BasePaymentDriver $term = strtolower($matches[2]); $price = $invoice_item->cost; if ($plan == PLAN_ENTERPRISE) { - preg_match('/###[\d] [\w]* (\d*)/', $invoice_item->notes, $numUserMatches); + preg_match('/###[\d]* [\w]* (\d*)/', $invoice_item->notes, $numUserMatches); if (count($numUserMatches)) { $numUsers = $numUserMatches[1]; } else {