Skip to content

Commit

Permalink
Ensure ctype_digit param is a string, per PHP 8.1 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Aug 19, 2021
1 parent e901460 commit ba6e201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/modules/payment/paypaldp.php
Expand Up @@ -2422,7 +2422,7 @@ function get_authentication_error() {
// MAPs will return the appropriate error code.
function getISOCurrency($curr) {
$out = "";
if(ctype_digit($curr) || is_int($curr)) {
if(is_int($curr) || ctype_digit((string)$curr)) {
$numCurr = $curr + 0;
if($numCurr < 10) {
$out = "00" . $numCurr;
Expand Down

0 comments on commit ba6e201

Please sign in to comment.