From 4865a853023da65ede483618be68d5063952165e Mon Sep 17 00:00:00 2001 From: Chriztoffer Date: Wed, 8 Jan 2020 18:24:38 +0000 Subject: [PATCH] lib/functions.php: Ensure MaxLength is stored as unquoted integer --- lib/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions.php b/lib/functions.php index f6730af..4493e27 100755 --- a/lib/functions.php +++ b/lib/functions.php @@ -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++; }