From ba6e201a8bf8311f04e52f1e25b7f79ba040d3df Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Thu, 19 Aug 2021 16:38:28 -0400 Subject: [PATCH] Ensure ctype_digit param is a string, per PHP 8.1 requirement --- includes/modules/payment/paypaldp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/modules/payment/paypaldp.php b/includes/modules/payment/paypaldp.php index da2b26e972..4e42816a4b 100644 --- a/includes/modules/payment/paypaldp.php +++ b/includes/modules/payment/paypaldp.php @@ -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;