1
0
mirror of synced 2024-11-22 05:16:07 +03:00

customers method fix

This commit is contained in:
Grisha Pomadchin 2014-07-11 17:19:46 +04:00
parent e5215e7fcb
commit a53565c8fd

View File

@ -174,9 +174,9 @@ class RestApi
public function customers($phone = null, $email = null, $fio = null, $limit = 200, $offset = 0)
{
$url = $this->apiUrl.'customers';
$this->parameters['phone'] = $phone;
$this->parameters['email'] = $email;
$this->parameters['fio'] = $fio;
if($phone) $this->parameters['phone'] = $phone;
if($email) $this->parameters['email'] = $email;
if($fio) $this->parameters['fio'] = $fio;
$this->parameters['limit'] = $limit;
$this->parameters['offset'] = $offset;