Skip to content

Commit

Permalink
Encode_file is for internal use only.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Oct 23, 2011
1 parent b940d3e commit 030c6b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/email/driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function html_body($html, $generate_alt = null, $auto_attach = null)
*/
public function subject($subject)
{
$this->subject = $subject;
$this->subject = (string) $subject;

return $this;
}
Expand Down Expand Up @@ -414,6 +414,7 @@ protected function clear_reply_to()
* @param bool $inline whether to include the file inline
* @param string $mime the file's mime-type
* @param string $mime the file's mime-type
* @return object $this
*/
public function attach($file, $inline = false, $cid = null, $mime = null)
{
Expand Down Expand Up @@ -502,7 +503,7 @@ public function string_attach($contents, $filename, $cid = null, $inline = false
* @param string $encoding the encoding
* @retun string the encoded file data
*/
public static function encode_file($file, $newline, $length = 76)
protected static function encode_file($file, $newline, $length = 76)
{
if (($contents = file_get_contents($file)) === false or empty($contents))
{
Expand Down

0 comments on commit 030c6b3

Please sign in to comment.