Skip to content

Commit

Permalink
Use the message factory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 8, 2013
1 parent 3bb95ac commit 22d0478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -2705,8 +2705,7 @@ protected function _searchGal(array $query)
Horde_ActiveSync::GAL_OFFICE => !empty($row['office']) ? $row['office'] : '',
);
if (!empty($query[Horde_ActiveSync_Request_Search::SEARCH_PICTURE])) {
$picture = new Horde_ActiveSync_Message_GalPicture(
array('protocolversion' => $this->_version, 'logger' => $this->_logger));
$picture = Horde_ActiveSync::messageFactory('GalPicture');
if (empty($row['photo'])) {
$picture->status = Horde_ActiveSync_Status::NO_PICTURE;
} elseif (!empty($query[Horde_ActiveSync_Request_Search::SEARCH_MAXPICTURES]) &&
Expand Down

0 comments on commit 22d0478

Please sign in to comment.