Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indirect vars for PHP 7 compatibility #1171

Merged
merged 1 commit into from Jul 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions includes/modules/pages/payer_auth_verifier/header_php.php
Expand Up @@ -97,8 +97,8 @@
$authenticate_data_array = array('transaction_id' => $_SESSION['3Dsecure_transactionId'],
'payload' => $_POST["PaRes"]);

if (is_object($$payment_module)) {
$authenticate_resp_array = $$payment_module->get3DSecureAuthenticateResponse($authenticate_data_array);
if (is_object(${$payment_module})) {
$authenticate_resp_array = ${$payment_module}->get3DSecureAuthenticateResponse($authenticate_data_array);
}

$shouldContinue = $authenticate_resp_array['continue_flag'];
Expand Down Expand Up @@ -150,9 +150,9 @@
////////////////////////////////////////////////////////////////////
// Business rules are set to prompt for another form of payment
////////////////////////////////////////////////////////////////////
$error = $$payment_module->get_authentication_error();
$error = ${$payment_module}->get_authentication_error();

$messageStack->add_session('checkout_payment', $error . '<!-- ['.$$payment_module->code.'] -->', 'error');
$messageStack->add_session('checkout_payment', $error . '<!-- ['.${$payment_module}->code.'] -->', 'error');
$redirectPage = zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false);
}

Expand Down Expand Up @@ -184,9 +184,9 @@ function onLoadHandler(){

<?php
// Call pre_confirmation_check on the underlying payment module.
$$payment_module->pre_confirmation_check();
${$payment_module}->pre_confirmation_check();
// output the appropriate POST vars so form can be processed for submission to gateway
echo $$payment_module->process_button();
echo ${$payment_module}->process_button();
?>
<noscript>
<br><br>
Expand Down