Skip to content

Commit

Permalink
Merge pull request #1447 from samsonasik/add-missing-break-found-card…
Browse files Browse the repository at this point in the history
…-info

add missing break; on loop cards to get card info at CreditCardRules::valid_cc_number()
  • Loading branch information
jim-parry committed Nov 11, 2018
2 parents c434ee7 + 417f1c0 commit 2ef0bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/Validation/CreditCardRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function valid_cc_number(string $ccNumber = null, string $type, array $da
if ($card['name'] == $type)
{
$info = $card;
break;
}
}

Expand Down

0 comments on commit 2ef0bee

Please sign in to comment.