Skip to content

Commit

Permalink
Merge pull request #4 from vr-dev-team/hotfix/module-log-call
Browse files Browse the repository at this point in the history
fix for module log call
  • Loading branch information
jetrodn authored Apr 26, 2021
2 parents 4620456 + 11fa2b0 commit 19f1cad
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 19f1cad

Please sign in to comment.