Skip to content

Commit 32b6bfb

Browse files
committed
Fixes typo
1 parent fbd1b3f commit 32b6bfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public function changeBuild($id, array $data)
418418
if ($ip !== $server->ip || $port !== $server->port) {
419419
$allocation = Models\Allocation::where('ip', $ip)->where('port', $port)->where('assigned_to', $server->id)->get();
420420
if (!$allocation) {
421-
throw new DisplayException('The assigned default connection (' . $ip . ':' . $prot . ') is not allocated to this server.');
421+
throw new DisplayException('The assigned default connection (' . $ip . ':' . $port . ') is not allocated to this server.');
422422
}
423423

424424
$server->ip = $ip;
@@ -526,7 +526,6 @@ public function changeBuild($id, array $data)
526526
]
527527
]
528528
]);
529-
530529
$server->save();
531530
DB::commit();
532531
return true;

0 commit comments

Comments
 (0)