Skip to content
Browse files

Removed unnecessary string interpolation.

  • Loading branch information...
1 parent 2f8c1c0 commit a690f9bd2de9bdf9da24a89583130f8022ca2b49 @outis committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 php/phpcreditcard.php
View
2 php/phpcreditcard.php
@@ -276,7 +276,7 @@ function formbuilder_find_card_type($cardnumber, $cards)
foreach($possible_prefixes as $prefix)
{
$prefix = trim($prefix);
- if(strpos(" $cardnumber", $prefix) === 1)
+ if(strpos($cardnumber, $prefix) === 0)
{
// We found a match. Set the card name and break.
return($card['name']);

0 comments on commit a690f9b

Please sign in to comment.
Something went wrong with that request. Please try again.