We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38a9bc6 commit c4b744fCopy full SHA for c4b744f
1 file changed
src/admin/cc_refund.php
@@ -40,6 +40,10 @@ function_requirements('class.AuthorizeNetCC');
40
$invoice_arr[] = $db_check_invoice->Record['invoices_id'];
41
}
42
43
+ if (!isset($invoice_arr)) {
44
+ add_output('Could not find any invoices matching the custid and transasction id criteria');
45
+ return;
46
+ }
47
\MyAdmin\App::variables()->request['inv'] = implode(',', $invoice_arr);
48
$do = strtotime(date('Y-m-d', strtotime($cc_log['cc_timestamp']))) == strtotime(date('Y-m-d')) ? 'void' : 'refund';
49
$db = clone \MyAdmin\App::db();
0 commit comments