mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 20:32:14 +09:00
Fix missing subject when forced to send via SMS
This commit is contained in:
parent
aab6bd6d48
commit
d321a3e1c9
1 changed files with 3 additions and 3 deletions
|
|
@ -628,9 +628,9 @@ class SMS
|
|||
// Remove subject and attachments if the message type is SMS.
|
||||
if ($item->type === 'SMS')
|
||||
{
|
||||
if ($item->subject)
|
||||
if ($subject)
|
||||
{
|
||||
$content = $item->subject . "\n" . $content;
|
||||
$content = $subject . "\n" . $content;
|
||||
unset($item->subject);
|
||||
}
|
||||
$attachments = array();
|
||||
|
|
@ -697,7 +697,7 @@ class SMS
|
|||
$cloneitem = clone $item;
|
||||
|
||||
// Determine the best message type for this part.
|
||||
if ($cloneitem->type !== 'SMS')
|
||||
if ($cloneitem->type !== 'SMS' && !$cloneitem->subject)
|
||||
{
|
||||
$cloneitem->type = $attachment ? 'MMS' : ($this->_getLengthInCharset($content_part, $spec['sms_max_length_in_charset']) > $spec['sms_max_length'] ? 'LMS' : 'SMS');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue