From f9fab2a2c3f0915c83c994c956f76708b71c8387 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 22 Jun 2018 15:22:13 -0400 Subject: [PATCH] Get php notice for the name of the class constructor. Changing the class constructor name to __construct --- lib/class_streamsend_api.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/class_streamsend_api.php b/lib/class_streamsend_api.php index e3b41d7..0d3da9b 100644 --- a/lib/class_streamsend_api.php +++ b/lib/class_streamsend_api.php @@ -375,7 +375,7 @@ class StreamSend { * * May be called with optional $debug parameter to set debug right away. */ - function StreamSend($base_url, $user_name, $user_password, $debug = false ) + function __construct($base_url, $user_name, $user_password, $debug = false ) { global $streamsendFieldTypes; @@ -1419,7 +1419,7 @@ class StreamSend { $post_data .= ' <'.trim($k).'>'.trim($v).'\n"; } } - + $post_data .= " $activate\n" ." $deliver\n" ." $welcome\n"; @@ -1428,8 +1428,8 @@ class StreamSend { $this->debug('contactCreate() XML POST request data
'
                     ."\n".htmlentities($this->postData)."\n"
                     .'
'); - - + + /** This operation requires the "POST" Method */ if ($this->sendRequest('POST', 'audiences/'.STREAMSEND_AUDIENCE.'/people') === false) { $this->debug('contactCreate() Call to sendRequest() failed.'); @@ -2168,5 +2168,3 @@ class StreamSend { } - -?> -- 2.17.1