Fixed $_GATEWAY not defined error

This commit is contained in:
Wouter van Os
2015-10-17 17:33:17 +02:00
parent f54ef92176
commit 5aee12920e

View File

@@ -21,7 +21,7 @@ if(isset($_POST['id'])) {
$transactionQuery = select_query('gateway_mollie', '', array('paymentid' => $_POST['id']), null, null, 1);
if (mysql_num_rows($transactionQuery) != 1) {
logTransaction($_GATEWAY['paymentmethod'], $_POST, 'Callback - Failure 2 (Transaction not found)');
logTransaction('mollieunknown', $_POST, 'Callback - Failure 2 (Transaction not found)');
header('HTTP/1.1 500 Transaction not found');
exit();
@@ -88,4 +88,4 @@ if(isset($_POST['id'])) {
header('HTTP/1.1 500 Arg mismatch');
exit();
}
}