Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unnecessary string interpolation.

  • Loading branch information...
commit a690f9bd2de9bdf9da24a89583130f8022ca2b49 1 parent 2f8c1c0
@outis authored
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']);
Please sign in to comment.
Something went wrong with that request. Please try again.