From b132d2206f2c183852bc07cbbfd6a05a90af36ab Mon Sep 17 00:00:00 2001
From: Brandon Bergren <bdragon@rtk0.net>
Date: Tue, 13 Dec 2016 10:00:19 -0600
Subject: [PATCH] Fix PHP 7 evaluation problem.

---
 includes/authnet.aim.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/authnet.aim.inc b/includes/authnet.aim.inc
index 10ec47d..8977fc8 100755
--- a/includes/authnet.aim.inc
+++ b/includes/authnet.aim.inc
@@ -52,7 +52,7 @@ function authnet_aim_transaction($sale, $method = AUTHNET_METHOD_AUTH_CAPTURE, $
     $request->setFields($sale);
 
     // Send the request to Authorize.net
-    $response = $request->$methods[$method]();
+    $response = $request->{$methods[$method]}();
 
     // Log the response object.
     authnet_log_response($response);
-- 
2.1.4

