- fixed ESI error 400 'connections' items are not all unique for getRouteData()

This commit is contained in:
Mark Friedrich
2018-06-08 19:28:19 +02:00
parent 9f8634e2e8
commit d7cb64aa9c

View File

@@ -542,7 +542,12 @@ class Route extends Controller\AccessController {
// systemIds exist and wer not removed before in filterJumpData()
if($systemSourceId && $systemTargetId){
$connections[] = [$systemSourceId, $systemTargetId];
$jumpNode = [$systemSourceId, $systemTargetId];
// jumpNode must be unique for ESI,
// ... there can be multiple connections between same systems in Pathfinder
if(!in_array($jumpNode, $connections)){
$connections[] = [$systemSourceId, $systemTargetId];
}
}
}
}