From d846811613ad52aa640e5e68f5771cfb4956d435 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Mon, 10 Dec 2018 19:43:09 +0100 Subject: [PATCH] Updated roagen.php --- roagen.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roagen.php b/roagen.php index b5cff60..78c0f54 100755 --- a/roagen.php +++ b/roagen.php @@ -89,7 +89,7 @@ foreach($files as $file) } else { $ta = 'NULL'; } - if (isset($maxLength)) { + if ($ta == 'DN42' && isset($maxLength)) { $mask = $maxLength; } $roas['roas'][$i]['maxLength'] = $mask; @@ -107,7 +107,7 @@ foreach($files as $file) } else { $ta = 'NULL'; } - if (isset($maxLength)) { + if ($ta == 'DN42' && isset($maxLength)) { $mask = $maxLength; } $roas['roas'][$i]['maxLength'] = $mask; @@ -172,7 +172,7 @@ foreach($files as $file) } else { $ta = 'NULL'; } - if (isset($maxLength)) { + if ($ta == 'DN42' && isset($maxLength)) { $mask = $maxLength; } $roas['roas'][$i]['maxLength'] = $mask; @@ -190,7 +190,7 @@ foreach($files as $file) } else { $ta = 'NULL'; } - if (isset($maxLength)) { + if ($ta == 'DN42' && isset($maxLength)) { $mask = $maxLength; } $roas['roas'][$i]['maxLength'] = $mask;