An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor(Server): use data_get for safer access to settings properties in isFunctional method
Andras Bacsai1b8db2726adc
diff --git a/app/Models/Server.php b/app/Models/Server.phpindex 56aa58e873..60d0da3eda 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -925,7 +925,7 @@ $schema://$host {public function isFunctional(){- $isFunctional = $this->settings->is_reachable && $this->settings->is_usable && $this->settings->force_disabled === false && $this->ip !== '1.2.3.4';+ $isFunctional = data_get($this->settings, 'is_reachable') && data_get($this->settings, 'is_usable') && data_get($this->settings, 'force_disabled') === false && $this->ip !== '1.2.3.4';if ($isFunctional === false) {Storage::disk('ssh-mux')->delete($this->muxFilename());