swapped Port inputs

This commit is contained in:
Frank Schubert
2021-09-21 23:28:53 +02:00
parent 270cb3f32b
commit db6c677263
2 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -99,11 +99,11 @@ class Termination extends mfBaseModel {
$range = [];
$pairs = [];
$mod = $from % 2;
for($i = $from; $i <= $to; $i++) {
$range[] = intval($i);
if($i % 2 == $mod && $i + 1 <= $to) {
if($i + 1 <= $to) {
$pairs[] = $i."-".($i+1);
}
}