Fix unexpected behavior when calling api with numbers being an array of array
This commit is contained in:
parent
d826762e9d
commit
4218b0e353
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue