Skip to content
Snippets Groups Projects
Commit c112f611 authored by naomi's avatar naomi
Browse files

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
No related branches found
No related tags found
2 merge requests!19Fixes some issues in test mode,!18Resolves #34 - gets test contributions related to a recurring contribution.
......@@ -22,9 +22,10 @@ class CRM_Stripe_Customer {
}
$queryParams = [
1 => [$params['contact_id'], 'String'],
2 => [$params['is_live'], 'Boolean'],
2 => [$params['is_live'] ? 1 : 0, 'Boolean'],
3 => [$params['processor_id'], 'Positive'],
];
return CRM_Core_DAO::singleValueQuery("SELECT id
FROM civicrm_stripe_customers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment