Fix al calcolo seriali (#437)

This commit is contained in:
xxfuma85xx 2019-02-19 17:15:18 +01:00 committed by Thomas Zilio
parent 3ab46c73a0
commit c288d19499
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ switch (post('op')) {
preg_match("/(.*?)([\d]*$)/", $serial__end, $m);
$serial_end = intval($m[2]);
$n_serial = abs($serial_end - $serial_start) + 1;
$serial_prefix = str_replace($serial_end, '', $serial__end);
$serial_prefix = rtrim($serial__end,$serial_end);
$serial_pad_length = strlen($serial__end) - strlen($serial_prefix);
// Altro