Skip to content

Commit

Permalink
Bug: 14843 Fix logic.
Browse files Browse the repository at this point in the history
Fix broken logic in filtering out Contact Groups from EAS GAL
search results.
  • Loading branch information
mrubinsk committed Aug 9, 2018
1 parent 23d7c45 commit 3408282
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -3490,9 +3490,10 @@ protected function _searchGal(array $query)
// multiple email addresses, or the group syntax will cause most
// clients to silently throw out all but the first email address in
// the list, or will completely fail to send the message altogether.
if (empty($row['__type']) || $row['__type'] != 'Object') {
if (!empty($row['__type']) && ($row['__type'] != 'Object')) {
continue;
}

$entry = array(
Horde_ActiveSync::GAL_ALIAS => !empty($row['alias']) ? $row['alias'] : '',
Horde_ActiveSync::GAL_DISPLAYNAME => $row['name'],
Expand Down

0 comments on commit 3408282

Please sign in to comment.