Commit c112f611 authored by naomi's avatar naomi

Ensure 'is_live' is always a boolean

Without this, was getting a fatal error saying a parameter is not of
type boolean, in test mode.
parent 3d75dd52
...@@ -22,9 +22,10 @@ class CRM_Stripe_Customer { ...@@ -22,9 +22,10 @@ class CRM_Stripe_Customer {
} }
$queryParams = [ $queryParams = [
1 => [$params['contact_id'], 'String'], 1 => [$params['contact_id'], 'String'],
2 => [$params['is_live'], 'Boolean'], 2 => [$params['is_live'] ? 1 : 0, 'Boolean'],
3 => [$params['processor_id'], 'Positive'], 3 => [$params['processor_id'], 'Positive'],
]; ];
return CRM_Core_DAO::singleValueQuery("SELECT id return CRM_Core_DAO::singleValueQuery("SELECT id
FROM civicrm_stripe_customers FROM civicrm_stripe_customers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment