Skip to content

Commit

Permalink
Fix setting return from ID command
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 27, 2015
1 parent 90cbdcc commit 62b549f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Imap_Client/lib/Horde/Imap/Client/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -898,14 +898,14 @@ protected function _sendID($info)
$temp = &$this->_temp;

/* Add to queue - this doesn't need to be sent immediately. */
$cmd->on_error = function() use ($temp) {
$cmd->on_error = function() use (&$temp) {
/* Ignore server errors. E.g. Cyrus returns this:
* 001 NO Only one Id allowed in non-authenticated state
* even though NO is not allowed in RFC 2971[3.1]. */
$temp['id'] = array();
return true;
};
$cmd->on_success = function() use ($cmd, $temp) {
$cmd->on_success = function() use ($cmd, &$temp) {
$temp['id'] = $cmd->pipeline->data['id'];
};
$this->_cmdQueue[] = $cmd;
Expand Down

0 comments on commit 62b549f

Please sign in to comment.