lib/functions.php: Ensure MaxLength is stored as unquoted integer

This commit is contained in:
netravnen 2020-01-08 18:24:38 +00:00 committed by Chriztoffer
parent 97897bfb93
commit 4865a85302

View file

@ -123,6 +123,7 @@ function writeExportJSON ($roas)
foreach ($roas['roas'] as $object)
{
$roas['roas'][$n]['asn'] = "AS" . $roas['roas'][$n]['asn'];
$roas['roas'][$n]['maxLength'] = (int)preg_replace('/\D/', '', $roas['roas'][$n]['maxLength']); // Ensure unquoted integer
$n++;
}