Skip to content

Commit

Permalink
[mms] Fix harmless undefined error when accessing certain configurati…
Browse files Browse the repository at this point in the history
…on parameters.
  • Loading branch information
slusarz committed May 17, 2014
1 parent 0aeb3bc commit ff98e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Smtp/lib/Horde/Smtp.php
Expand Up @@ -252,7 +252,8 @@ public function getParam($key)
switch ($key) {
case 'password':
case 'xoauth2_token':
if ($this->_params[$key] instanceof Horde_Smtp_Password) {
if (isset($this->_params[$key]) &&
($this->_params[$key] instanceof Horde_Smtp_Password)) {
return $this->_params[$key]->getPassword();
}

Expand Down
2 changes: 2 additions & 0 deletions framework/Smtp/package.xml
Expand Up @@ -21,6 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fix harmless undefined error when accessing certain configuration parameters.
* [mms] Horde_Smtp#send() now returns recipient status information if at least one recipient was successfully accepted.
* [mms] Added an LMTP (RFC 2033) driver.
* [jan] Add Hungarian translation (Andras Galos &lt;galosa@netinform.hu&gt;).
Expand Down Expand Up @@ -375,6 +376,7 @@
<date>2014-05-14</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fix harmless undefined error when accessing certain configuration parameters.
* [mms] Horde_Smtp#send() now returns recipient status information if at least one recipient was successfully accepted.
* [mms] Added an LMTP (RFC 2033) driver.
* [jan] Add Hungarian translation (Andras Galos &lt;galosa@netinform.hu&gt;).
Expand Down

0 comments on commit ff98e20

Please sign in to comment.