Skip to content

Commit

Permalink
Only return the fields we know we need.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 23, 2014
1 parent 91a7dc8 commit 726a5a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/Core/lib/Horde/Core/ActiveSync/Connector.php
Expand Up @@ -333,17 +333,20 @@ public function contacts_search($query, array $options = array())
return array();
}

$fields = array($gal => array('name', 'alias', 'email', 'firstname', 'lastname',
'company', 'homePhone', 'workPhone', 'cellPhone', 'title',
'office'));
if (!empty($options['pictures'])) {
$fields[$gal][] = 'photo';
}
$opts = array(
'matchBegin' => true,
'forceSource' => true,
'sources' => array($gal)
'sources' => array($gal),
'returnFields' => $fields
);

return $this->_registry->contacts->search($query, $opts);

}

/**
Expand Down

0 comments on commit 726a5a0

Please sign in to comment.