Fix few missing indexes on get_smss_to_send

This commit is contained in:
osaajani 2021-09-17 21:50:44 +02:00
parent 48b2ba5684
commit e2bb00cc0c
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
v3.1.11
v3.1.12

View File

@ -328,6 +328,7 @@ namespace controllers\internals;
}
//Add medias to mms
$scheduled['medias'] = [];
if ($scheduled['mms'])
{
$internal_media = new Media($this->bdd);
@ -481,7 +482,7 @@ namespace controllers\internals;
}
//Remove messages to smsstops numbers
if (in_array($message['destination'], $users_smsstops[$scheduled['id_user']]))
if (($users_smsstops[$scheduled['id_user']] ?? false) && in_array($message['destination'], $users_smsstops[$scheduled['id_user']]))
{
continue;
}