From 6e2b519d61e2b858caecd29758864a9d23889f92 Mon Sep 17 00:00:00 2001
From: makbeta <makbeta@103781.no-reply.drupal.org>
Date: Mon, 11 Aug 2014 13:49:10 -0700
Subject: [PATCH] Issue 2312771 by makbeta: Fixed the bug where  file is reset
 when a non-empty array is passed as a variable, should be reset only when the
 variable is empty.

---
 convio_api.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/convio_api.module b/convio_api.module
index 1709516..f286246 100644
--- a/convio_api.module
+++ b/convio_api.module
@@ -64,7 +64,7 @@ function convio_api_get_configuration() {
  *   Return the response that is generated.
  */
 function convio_api_request($params = array(), $api = 'constituent', $request_type = 'client', $config = array()) {
-  if(!empty($config)) {
+  if(empty($config)) {
     $config = convio_api_get_configuration();
   }
   try {
-- 
1.8.1

