From 10acbb8ad683211e39e29f56b74957322c329c99 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 3 Jul 2014 13:05:44 -0400 Subject: [PATCH] Fix WHMCS login for multiple users again --- airtime_mvc/application/controllers/WhmcsLoginController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/controllers/WhmcsLoginController.php b/airtime_mvc/application/controllers/WhmcsLoginController.php index b1422d473..b8573c557 100644 --- a/airtime_mvc/application/controllers/WhmcsLoginController.php +++ b/airtime_mvc/application/controllers/WhmcsLoginController.php @@ -226,9 +226,9 @@ class WHMCS_Auth_Adapter implements Zend_Auth_Adapter_Interface { $isAirtimeAccountSuspended = true; $airtimeProduct = null; - foreach ($arr["products"] as $product) + foreach ($arr["products"]["product"] as $product) { - if (strpos($product["groupname"]["product"], "Airtime") === FALSE) + if (strpos($product["groupname"], "Airtime") === FALSE) { //Ignore non-Airtime products continue;