Commit 0e4c6728 authored by Korko's avatar Korko
Browse files

Filter empty strings in exclusions array

parent 60d8b96e
Pipeline #188497 passed with stage
in 4 minutes and 35 seconds
...@@ -71,7 +71,7 @@ class RandomFormController extends Controller ...@@ -71,7 +71,7 @@ class RandomFormController extends Controller
'name' => $names[$i], 'name' => $names[$i],
'email' => $emails[$i], 'email' => $emails[$i],
'phone' => $phones[$i] ? '+33'.$phones[$i] : $phones[$i], 'phone' => $phones[$i] ? '+33'.$phones[$i] : $phones[$i],
'exclusions' => (isset($exclusions[$i])) ? array_map('intval', $exclusions[$i]) : [], 'exclusions' => (!empty($exclusions[$i])) ? array_map('intval', array_filter($exclusions[$i], 'strlen')) : [],
]; ];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment