From: Eileen McNaughton Date: Mon, 4 May 2015 08:57:10 +0000 (+1200) Subject: CRM-16357 (Backoffice contribution Form) enotice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a9f2790a2f5d011c5024211208052b6d98338df;p=civicrm-core.git CRM-16357 (Backoffice contribution Form) enotice fix --- 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];