File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -287,15 +287,15 @@ public static function oauthExchange(
287287 }
288288
289289 /**
290- * @param $oath_string
290+ * @param $oauth_string
291291 * @return mixed
292292 * @throws MailchimpException
293293 */
294- private static function requestAccessToken ($ oath_string )
294+ private static function requestAccessToken ($ oauth_string )
295295 {
296296 $ request = self ::getStaticRequest ();
297297 $ request ->setMethod ("POST " );
298- $ request ->setPayload ($ oath_string );
298+ $ request ->setPayload ($ oauth_string );
299299 $ request ->setBaseUrl (MailchimpConnection::TOKEN_REQUEST_URL );
300300
301301 $ connection = self ::getStaticConnection ($ request );
Original file line number Diff line number Diff line change @@ -269,7 +269,8 @@ public function setAuth()
269269 */
270270 public function setPayload ($ payload )
271271 {
272- $ payload = $ this ->serializePayload ($ payload );
272+ if (is_array ($ payload ))
273+ $ payload = $ this ->serializePayload ($ payload );
273274 $ this ->payload = $ payload ;
274275 }
275276
You can’t perform that action at this time.
0 commit comments