mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
add medias to discussion
This commit is contained in:
parent
3fff7e0abd
commit
0f6bf9ccde
4 changed files with 75 additions and 2 deletions
|
@ -43,6 +43,11 @@ namespace controllers\internals;
|
|||
'mms' => $mms,
|
||||
];
|
||||
|
||||
if ($text === '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (null !== $id_phone)
|
||||
{
|
||||
$internal_phone = new Phone($this->bdd);
|
||||
|
@ -441,7 +446,7 @@ namespace controllers\internals;
|
|||
foreach ($messages as $message)
|
||||
{
|
||||
//Remove empty messages
|
||||
if ('' === trim($message['text']))
|
||||
if ('' === trim($message['text']) && !$message['medias'])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue