mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 10:54:46 +02:00
Fix boolean flipping
This commit is contained in:
parent
788de1b23a
commit
2fdde75f9c
@ -846,7 +846,7 @@ class ServerRepository
|
|||||||
if ($server->installed === 2) {
|
if ($server->installed === 2) {
|
||||||
throw new DisplayException('This server was marked as having a failed install, you cannot override this.');
|
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();
|
return $server->save();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user