Skip to content

Commit

Permalink
fix for module log call
Browse files Browse the repository at this point in the history
  • Loading branch information
jetrodn committed Apr 26, 2021
1 parent ca38f98 commit 11fa2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gateways/vrcoinify.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ function vrcoinify_link($params)
);

if (empty($result)) {
logModuleCall('vrcoinify', 'invoiceCreation', $params, $result, [], []);
logModuleCall('vrcoinify', 'invoiceCreation', $params, $result, null, null);
return renderError(vrcoinify_error_not_available);
}

$error = $result['error'] ?? null;

if ($error) {
$code = $error['code'] ?? null;
logModuleCall('vrcoinify', 'invoiceCreation', $params, $result, [], []);
logModuleCall('vrcoinify', 'invoiceCreation', $params, $result, null, null);

if ($code && 'amount_too_low' === $code) {
return renderError(vrcoinify_error_amount_too_low);
Expand Down

0 comments on commit 11fa2b0

Please sign in to comment.