mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-05-06 08:16:26 +02:00
Check phone exists on callback reception
This commit is contained in:
parent
5c5571d38a
commit
ea744d31e2
2 changed files with 9 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
v3.5.1
|
||||
v3.5.2
|
||||
|
|
|
@ -155,6 +155,14 @@ use Monolog\Logger;
|
|||
{
|
||||
$this->logger->info('Callback reception call with adapter uid : ' . $adapter_uid);
|
||||
|
||||
$phone = $this->internal_phone->get_for_user($this->user['id'], $id_phone);
|
||||
if (!$phone)
|
||||
{
|
||||
$this->logger->error('Callback reception use non existing phone : ' . $id_phone);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//Search for an adapter
|
||||
$find_adapter = false;
|
||||
$adapters = $this->internal_adapter->list_adapters();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue