Skip to content

Commit

Permalink
Merge pull request #44 from emailplatform/version1.2.16
Browse files Browse the repository at this point in the history
Version1.2.16
  • Loading branch information
emailplatform authored Aug 18, 2020
2 parents 0b2a9c7 + e821356 commit 7f02312
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ print_r($result);

## Changelog:

### _Differences between **v1.2.15** and **v1.2.16**_
#### Method definition changed:

* **GetSubscriberDetails**
> *Previous:*
`listid was required.`

> *Now:*
`listid is not required if subscriberid is specified.`

### _Differences between **v1.2.14** and **v1.2.15**_
#### Method definition changed:

Expand Down
2 changes: 1 addition & 1 deletion src/ApiParser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public function GetSubscribersByCustomField ($listid = false, $data = array(), $
public function GetSubscriberDetails($listid = false, $subscriberid = false, $emailaddress = false, $mobile = false, $mobile_prefix = false)
{
$url = $this->URL . '/Subscribers/GetSubscriberDetails';
if(($emailaddress || $mobile || $subscriberid) && $listid)
if($subscriberid || ($listid && ($emailaddress || $mobile)))
{
$params = array(
'listid' => $listid,
Expand Down

0 comments on commit 7f02312

Please sign in to comment.