hide debug
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 12 May 2016 17:31:01 +0000 (13:31 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 12 May 2016 17:31:01 +0000 (13:31 -0400)
class-streamsendfeedaddon.php
index.php

index a803477..0edecd2 100644 (file)
@@ -191,7 +191,7 @@ class GFStreamSendAddOn extends GFFeedAddOn
             $merge_vars[ $name ] = $this->get_field_value( $form, $entry, $field_id );
         }
 
-        $this->add_contact( $merge_vars );
+        $return = $this->add_contact( $merge_vars );
     }
 
     public function add_contact($values)
@@ -205,7 +205,7 @@ class GFStreamSendAddOn extends GFFeedAddOn
         if (is_array($values) && !empty($values)) {
             // initialize the streamsend object
             $ss = new streamSend( STREAMSEND_BASE_URL, $apiLogin, $apiKey );
-            $ss->debug = true;
+            //$ss->debug = true;
             $ret = $ss->contactSearch($values['email']);
 
             $contactData = array();
@@ -227,7 +227,8 @@ class GFStreamSendAddOn extends GFFeedAddOn
                 );
             }
             if (!$contacts) {
-                echo '<p><h3>Debug Results</h3>'.$ss->debugBuffer.'</p>';
+                return false;
+                //echo '<p><h3>Debug Results</h3>'.$ss->debugBuffer.'</p>';
             }
             return true;
         }
index a41c4a7..1ab2d66 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,11 +3,11 @@
 Plugin Name: Gravity Forms StreamSend Add-On 
 Plugin URI: http://www.gaslightmedia.com
 Description: StreamSend Add on for Gravity Forms 
-Version: 1.0
+Version: 1.0.0
 Author: Steve Sutton
 Author URI: http://www.gaslightmedia.com
 */
-define( 'GLM_STREAMSEND_FEED_ADDON_VERSION', '1.0' );
+define( 'GLM_STREAMSEND_FEED_ADDON_VERSION', '1.0.0' );
 /**
  * Default parameters for contact create operations.
  * Note that these are strings for use in XML data not true/false values.