Permalink
Browse files

Bug #18982: Non-static method Mail_mimePart::encodeHeader() should no…

…t be called statically
  • Loading branch information...
1 parent 7ce657f commit dbb61b7a2c69f727808950f8035641a60f8086c6 @alecpl alecpl committed Mar 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Mail/mime.php
View
@@ -1319,7 +1319,8 @@ function _encodeHeaders($input, $params = array())
*/
function encodeHeader($name, $value, $charset, $encoding)
{
- return Mail_mimePart::encodeHeader(
+ $mime_part = new Mail_mimePart;
+ return $mime_part->encodeHeader(
$name, $value, $charset, $encoding, $this->_build_params['eol']
);
}

0 comments on commit dbb61b7

Please sign in to comment.