Merge branch 'ticket/nickvergessen/7716' into develop-olympus

* ticket/nickvergessen/7716:
  [ticket/7716] Data too long for column 'message_subject'
This commit is contained in:
Andreas Fischer 2010-08-21 21:19:12 +02:00
commit 7474b69175

View file

@ -1316,6 +1316,10 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
// Recipient Information
$recipients = $to = $bcc = array();
// First of all make sure the subject are having the correct length.
// To achieve this without cutting off between special chars we convert to an array and then count the elements.
$subject = truncate_string($subject);
if ($mode != 'edit')
{
// Build Recipient List