Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit 5a8cb26

Browse files
committed
modified sender_update() function in wrapper
1 parent 0ab4e26 commit 5a8cb26

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

V2.0/Mailin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,8 @@ public function create_sender($data)
732732
*/
733733
public function update_sender($data)
734734
{
735+
$id = $data['id'];
736+
unset($data['id']);
735737
return $this->put("advanced/".$id,json_encode($data));
736738
}
737739

src/Sendinblue/Mailin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,8 @@ public function create_sender($data)
733733
*/
734734
public function update_sender($data)
735735
{
736+
$id = $data['id'];
737+
unset($data['id']);
736738
return $this->put("advanced/".$id,json_encode($data));
737739
}
738740

0 commit comments

Comments
 (0)