From afcee7291f66aaf8bfcccd52118fee8775e60204 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 12 May 2016 13:31:01 -0400 Subject: [PATCH] hide debug --- class-streamsendfeedaddon.php | 7 ++++--- index.php | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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. -- 2.17.1