Get php notice for the name of the class constructor.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 22 Jun 2018 19:22:13 +0000 (15:22 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 22 Jun 2018 19:22:13 +0000 (15:22 -0400)
Changing the class constructor name to __construct

lib/class_streamsend_api.php

index e3b41d7..0d3da9b 100644 (file)
@@ -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).'</'.trim($k).">\n";
             }
         }
-        
+
         $post_data .= "  <activate>$activate</activate>\n"
                      ."  <deliver-activation>$deliver</deliver-activation>\n"
                      ."  <deliver-welcome>$welcome</deliver-welcome>\n";
@@ -1428,8 +1428,8 @@ class StreamSend {
         $this->debug('contactCreate() XML POST request data<br /><table border="1"><tr><td><pre>'
                     ."\n".htmlentities($this->postData)."\n"
                     .'</pre></td></tr></table>');
-        
-        
+
+
        /** 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 {
 
 
 }
-
-?>