Fix
This commit is contained in:
parent
b52f0b0eb3
commit
fe8e7baac5
@ -294,7 +294,7 @@ class Machine implements JsonSerializable {
|
|||||||
$id = random_int($min, $max);
|
$id = random_int($min, $max);
|
||||||
|
|
||||||
// If default gen add check digit
|
// If default gen add check digit
|
||||||
if ($id >= 68010000 && $id <= 68039999) {
|
if ($id >= 68010000 && $id <= 68099999) {
|
||||||
$id = ("$id" . CheckDigit::S10($id)) * 1;
|
$id = ("$id" . CheckDigit::S10($id)) * 1;
|
||||||
}
|
}
|
||||||
} while ($database->has('machines', ['machineid' => $id]) || $database->has('components', ['compid' => $id]));
|
} while ($database->has('machines', ['machineid' => $id]) || $database->has('components', ['compid' => $id]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user