Skip to content
Snippets Groups Projects
Commit 85786ccc authored by mattwire's avatar mattwire
Browse files

Fix PHP notice in ParseStripeException

parent f3739c41
No related branches found
No related tags found
No related merge requests found
...@@ -290,12 +290,8 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -290,12 +290,8 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
if ($log) { if ($log) {
Civi::log()->error("Stripe_Error {$op}: " . print_r($body, TRUE)); Civi::log()->error("Stripe_Error {$op}: " . print_r($body, TRUE));
} }
$err = $body['error']; // Get the error array. Creat a "fake" error code if error is not set.
if (!isset($err['code'])) { return $body['error'] ?? ['code' => 9000];
// A "fake" error code
$err['code'] = 9000;
}
return $err;
} }
/** /**
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<author>Matthew Wire (MJW Consulting)</author> <author>Matthew Wire (MJW Consulting)</author>
<email>mjw@mjwconsult.co.uk</email> <email>mjw@mjwconsult.co.uk</email>
</maintainer> </maintainer>
<releaseDate>2022-03-16</releaseDate> <releaseDate>2022-03-24</releaseDate>
<version>6.7.1</version> <version>6.7.2-dev</version>
<develStage>beta</develStage> <develStage>beta</develStage>
<compatibility> <compatibility>
<ver>5.40</ver> <ver>5.40</ver>
......
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