Skip to content

Commit

Permalink
Fix PHP warning (#9775)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Feb 23, 2025
1 parent ea41ae4 commit 0fd2840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function __construct($uid, $folder = null, $is_safe = false)
}

$this->mime = new rcube_mime($this->headers->charset);
$this->subject = str_replace("\n", '', $this->headers->get('subject'));
$this->subject = str_replace("\n", '', (string) $this->headers->get('subject'));
$from = $this->mime->decode_address_list($this->headers->from, 1);
$this->sender = current($from);

Expand Down

0 comments on commit 0fd2840

Please sign in to comment.