Skip to content

Commit

Permalink
Fix extension error message
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 5, 2014
1 parent 4f8c79a commit 5f254a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function build($exts = array())

if (!empty($ptr['modseq'])) {
if (!is_null($exts) && !isset($exts['CONDSTORE'])) {
throw new Horde_Imap_Client_Exception_NoSupportExtension('IMAP Server does not support CONDSTORE.');
throw new Horde_Imap_Client_Exception_NoSupportExtension('CONDSTORE');
}

$exts_used[] = 'CONDSTORE';
Expand All @@ -311,7 +311,7 @@ public function build($exts = array())

if (isset($ptr['prevsearch'])) {
if (!is_null($exts) && !isset($exts['SEARCHRES'])) {
throw new Horde_Imap_Client_Exception_NoSupportExtension('IMAP Server does not support SEARCHRES.');
throw new Horde_Imap_Client_Exception_NoSupportExtension('SEARCHRES');
}

$exts_used[] = 'SEARCHRES';
Expand Down Expand Up @@ -386,7 +386,7 @@ protected function _addFuzzy($add, &$temp)
if ($add) {
if (!isset($temp['exts']['SEARCH']) ||
!in_array('FUZZY', $temp['exts']['SEARCH'])) {
throw new Horde_Imap_Client_Exception_NoSupportExtension('IMAP Server does not support SEARCH=FUZZY.');
throw new Horde_Imap_Client_Exception_NoSupportExtension('SEARCH=FUZZY');
}
$temp['cmds']->add('FUZZY');
$temp['exts_used'][] = 'SEARCH=FUZZY';
Expand Down

0 comments on commit 5f254a7

Please sign in to comment.