Fix few missing indexes on get_smss_to_send
This commit is contained in:
parent
48b2ba5684
commit
e2bb00cc0c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue