Fix boolean flipping

This commit is contained in:
Dane Everitt 2017-02-15 16:59:50 -05:00
parent 788de1b23a
commit 2fdde75f9c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -846,7 +846,7 @@ class ServerRepository
if ($server->installed === 2) {
throw new DisplayException('This server was marked as having a failed install, you cannot override this.');
}
$server->installed = ($server->installed) ? 0 : 1;
$server->installed = ! $server->installed;
return $server->save();
}