Add else statement to onboarding check to fix undefined variable.

This commit is contained in:
purple 2023-04-23 18:37:28 +02:00
parent 294c3c85c5
commit 311b2b5e2b

View file

@ -23,8 +23,10 @@ class ExtensionsController extends Controller
public function index(): View
{
// Onboarding check.
if(shell_exec("cd /var/www/pterodactyl; cat .blueprint/.flags/onboarding.md") == "*blueprint*") {
if(shell_exec("cd /var/www/pterodactyl;cat .blueprint/.flags/onboarding.md") == "*blueprint*") {
$onboarding = true;
} else {
$onboarding = false;
}
return $this->view->make('admin.extensions', [
'version' => $this->version,