CRM-16357 (Backoffice contribution Form) enotice fix
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 4 May 2015 08:57:10 +0000 (20:57 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 4 May 2015 08:57:10 +0000 (20:57 +1200)
Civi/Payment/System.php

index bef62f79dd5bb2167f1fa8cd3a1a69e4df16c810..a32a319c544e7ff0b76a9f5f50f11be471171b84 100644 (file)
@@ -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];