Compare commits
2 Commits
4430d95d40
...
eef74f1e9c
Author | SHA1 | Date |
---|---|---|
osaajani | eef74f1e9c | |
osaajani | b833d76380 |
|
@ -306,6 +306,10 @@ namespace controllers\internals;
|
|||
}
|
||||
}
|
||||
|
||||
//Cut received messages by 1000 chars max
|
||||
$text_parts = mb_str_split($text, 1000);
|
||||
foreach ($text_parts as $text)
|
||||
{
|
||||
$received_id = $this->create($id_user, $id_phone, $at, $text, $origin, $status, $is_command, $mms, $media_ids);
|
||||
if (!$received_id)
|
||||
{
|
||||
|
@ -331,6 +335,7 @@ namespace controllers\internals;
|
|||
|
||||
$internal_user = new User($this->bdd);
|
||||
$internal_user->transfer_received($id_user, $received);
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue