From c8e1b3cd7f548e49fbf1e95f08bcd11e06c25315 Mon Sep 17 00:00:00 2001 From: Emili Castells Guasch Date: Wed, 30 Aug 2023 16:58:30 +0200 Subject: [PATCH] Check for string instead of boolean --- .../ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php b/modules/ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php index 233c41fe2..fb6827e6e 100644 --- a/modules/ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php +++ b/modules/ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php @@ -121,7 +121,7 @@ class BillingAgreementsEndpoint { */ public function reference_transaction_enabled(): bool { try { - if ( get_transient( 'ppcp_reference_transaction_enabled' ) === true ) { + if ( get_transient( 'ppcp_reference_transaction_enabled' ) === '1' ) { return true; }