closed #114 Added check for already existing system when adding a new one. (fixed PDO 'duplicate entry' error)
This commit is contained in:
@@ -49,8 +49,8 @@ class Connection extends Controller\AccessController{
|
||||
$map->getById( (int)$mapData['id'] );
|
||||
|
||||
if( $map->hasAccess($activeCharacter) ){
|
||||
$source = $map->getSystem( (int)$connectionData['source'] );
|
||||
$target = $map->getSystem( (int)$connectionData['target'] );
|
||||
$source = $map->getSystemById( $connectionData['source'] );
|
||||
$target = $map->getSystemById( $connectionData['target'] );
|
||||
|
||||
if(
|
||||
!is_null($source) &&
|
||||
|
||||
Reference in New Issue
Block a user