From 7a9f2790a2f5d011c5024211208052b6d98338df Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 4 May 2015 20:57:10 +1200 Subject: [PATCH] CRM-16357 (Backoffice contribution Form) enotice fix --- Civi/Payment/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Payment/System.php b/Civi/Payment/System.php index bef62f79dd..a32a319c54 100644 --- a/Civi/Payment/System.php +++ b/Civi/Payment/System.php @@ -52,7 +52,7 @@ class System { require_once str_replace('_', DIRECTORY_SEPARATOR, $paymentClass) . '.php'; } - $this->cache[$id] = new $paymentClass($processor['is_test'] ? 'test' : 'live', $processor); + $this->cache[$id] = new $paymentClass(!empty($processor['is_test']) ? 'test' : 'live', $processor); } } return $this->cache[$id]; -- 2.25.1