From 32b6bfbbe5d31d72d816771b66298be511f0483d Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 22 Jan 2016 20:44:24 -0500 Subject: [PATCH] Fixes typo --- app/Repositories/ServerRepository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index 423f78e39..555dcb229 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -418,7 +418,7 @@ class ServerRepository if ($ip !== $server->ip || $port !== $server->port) { $allocation = Models\Allocation::where('ip', $ip)->where('port', $port)->where('assigned_to', $server->id)->get(); 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; @@ -526,7 +526,6 @@ class ServerRepository ] ] ]); - $server->save(); DB::commit(); return true;