Fix contacts search

This commit is contained in:
RainLoop Team 2014-01-08 02:48:32 +04:00
parent 2c1087b987
commit c3540bfdb1
3 changed files with 25 additions and 12 deletions

View file

@ -4418,17 +4418,18 @@ class Actions
$iOffset = 0 > $iOffset ? 0 : $iOffset;
$iLimit = 0 > $iLimit ? 20 : $iLimit;
$iResultCount = 0;
if ($this->PersonalAddressBookProvider($oAccount)->IsActive())
{
$iCount = 0;
$iResultCount = 0;
$mResult = $this->PersonalAddressBookProvider($oAccount)->GetContacts($oAccount->ParentEmailHelper(),
$iOffset, $iLimit, $sSearch, $iCount);
$iOffset, $iLimit, $sSearch, $iResultCount);
}
return $this->DefaultResponse(__FUNCTION__, array(
'Offset' => $iOffset,
'Limit' => $iLimit,
'Count' => $iCount,
'Count' => $iResultCount,
'Search' => $sSearch,
'List' => $mResult
));