Skip to content

Commit

Permalink
fix the is_sync in store when if false
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed May 9, 2017
1 parent 01a266f commit 0862621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ebizmarts/mailchimp-lib",
"type": "library",
"version": "3.0.11",
"version": "3.0.12",
"description": "API client library for the MailChimp",
"keywords": ["email", "api","mailchimp"],
"homepage": "https://github.com/ebizmarts/mailchimp-lib",
Expand Down
4 changes: 2 additions & 2 deletions src/Mailchimp/EcommerceStores.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function add($id, $listId, $name, $currencyCode, $platform = null, $domai
if($timezone) $_params['timezone'] = $timezone;
if($phone) $_params['phone'] = $phone;
if($address) $_params['address'] = $address;
if($is_sync!=null) $_params['is_syncing'] = $is_sync;
if($is_sync!==null) $_params['is_syncing'] = $is_sync;
return $this->master->call('ecommerce/stores',$_params,Mailchimp::POST);
}

Expand Down Expand Up @@ -100,7 +100,7 @@ public function edit($storeId,$platform = null, $domain = null, $name = null ,$e
if($timezone) $_params['timezone'] = $timezone;
if($phone) $_params['phone'] = $phone;
if($address) $_params['address'] = $address;
if($is_sync!=null) $_params['is_syncing'] = $is_sync;
if($is_sync!==null) $_params['is_syncing'] = $is_sync;
return $this->master->call('ecommerce/stores/'.$storeId, $_params, Mailchimp::PATCH);
}

Expand Down

0 comments on commit 0862621

Please sign in to comment.