Fix unexpected behavior when calling api with numbers being an array of array

This commit is contained in:
osaajani 2021-11-26 19:27:51 +01:00
parent d826762e9d
commit 4218b0e353
1 changed files with 7 additions and 0 deletions

View File

@ -317,6 +317,13 @@ namespace controllers\publics;
foreach ($numbers as $key => $number)
{
if (!is_string($number))
{
unset($numbers[$key]);
continue;
}
$number = \controllers\internals\Tool::parse_phone($number);
if (!$number)