From 417f1c08b341e54326fddc278ff155428715da58 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 10 Nov 2018 04:42:08 +0700 Subject: [PATCH] add missing break; on loop cards to get card info at CreditCardRules::valid_cc_number() --- system/Validation/CreditCardRules.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/Validation/CreditCardRules.php b/system/Validation/CreditCardRules.php index 01ce88db3945..fb047110731f 100644 --- a/system/Validation/CreditCardRules.php +++ b/system/Validation/CreditCardRules.php @@ -112,6 +112,7 @@ public function valid_cc_number(string $ccNumber = null, string $type, array $da if ($card['name'] == $type) { $info = $card; + break; } }