Fixes typo
This commit is contained in:
parent
fbd1b3f097
commit
32b6bfbbe5
1 changed files with 1 additions and 2 deletions
|
@ -418,7 +418,7 @@ class ServerRepository
|
||||||
if ($ip !== $server->ip || $port !== $server->port) {
|
if ($ip !== $server->ip || $port !== $server->port) {
|
||||||
$allocation = Models\Allocation::where('ip', $ip)->where('port', $port)->where('assigned_to', $server->id)->get();
|
$allocation = Models\Allocation::where('ip', $ip)->where('port', $port)->where('assigned_to', $server->id)->get();
|
||||||
if (!$allocation) {
|
if (!$allocation) {
|
||||||
throw new DisplayException('The assigned default connection (' . $ip . ':' . $prot . ') is not allocated to this server.');
|
throw new DisplayException('The assigned default connection (' . $ip . ':' . $port . ') is not allocated to this server.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$server->ip = $ip;
|
$server->ip = $ip;
|
||||||
|
@ -526,7 +526,6 @@ class ServerRepository
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$server->save();
|
$server->save();
|
||||||
DB::commit();
|
DB::commit();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue