From: Steve Sutton
Date: Thu, 12 May 2016 17:31:01 +0000 (-0400)
Subject: hide debug
X-Git-Tag: v1.0.0^2~7
X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=afcee7291f66aaf8bfcccd52118fee8775e60204;p=WP-Plugins%2Fglm-gravityform-streamsend.git
hide debug
---
diff --git a/class-streamsendfeedaddon.php b/class-streamsendfeedaddon.php
index a803477..0edecd2 100644
--- a/class-streamsendfeedaddon.php
+++ b/class-streamsendfeedaddon.php
@@ -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 'Debug Results
'.$ss->debugBuffer.'
';
+ return false;
+ //echo 'Debug Results
'.$ss->debugBuffer.'';
}
return true;
}
diff --git a/index.php b/index.php
index a41c4a7..1ab2d66 100644
--- 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.