Skip to content

Commit

Permalink
[mms] Fix harmless PHP undefined error when using with an IMAP server…
Browse files Browse the repository at this point in the history
… that supports XOAUTH2.
  • Loading branch information
slusarz committed Oct 17, 2013
1 parent 7359104 commit a40a2fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion framework/Imap_Client/lib/Horde/Imap/Client/Socket.php
Expand Up @@ -194,7 +194,8 @@ public function getParam($key)
{
switch ($key) {
case 'xoauth2_token':
if ($this->_params[$key] instanceof Horde_Imap_Client_Base_Password) {
if (isset($this->_params[$key]) &&
($this->_params[$key] instanceof Horde_Imap_Client_Base_Password)) {
return $this->_params[$key]->getPassword();
}
break;
Expand Down
4 changes: 2 additions & 2 deletions framework/Imap_Client/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix harmless PHP undefined error when using with an IMAP server that supports XOAUTH2.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -2047,7 +2047,7 @@
<date>2013-10-17</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix harmless PHP undefined error when using with an IMAP server that supports XOAUTH2.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit a40a2fd

Please sign in to comment.