Commit dd922cca authored by mku's avatar mku

ZP-120 #comment Range in the GAL search response is invalid #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1327 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent f41d6996
......@@ -1050,9 +1050,8 @@ class BackendZarafa implements IBackend, ISearchProvider {
$querycnt = mapi_table_getrowcount($table);
//do not return more results as requested in range
$querylimit = (($rangeend + 1) < $querycnt) ? ($rangeend + 1) : $querycnt;
$items['range'] = $rangestart.'-'.($querylimit - 1);
$items['range'] = ($querylimit > 0) ? $rangestart.'-'.($querylimit - 1) : '0-0';
$items['searchtotal'] = $querycnt;
if ($querycnt > 0)
$abentries = mapi_table_queryrows($table, array(PR_ACCOUNT, PR_DISPLAY_NAME, PR_SMTP_ADDRESS, PR_BUSINESS_TELEPHONE_NUMBER, PR_GIVEN_NAME, PR_SURNAME, PR_MOBILE_TELEPHONE_NUMBER, PR_HOME_TELEPHONE_NUMBER, PR_TITLE, PR_COMPANY_NAME, PR_OFFICE_LOCATION), $rangestart, $querylimit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment