diff --git a/app/Utilities/Installer.php b/app/Utilities/Installer.php index 27f5065c4..f6596a9e6 100644 --- a/app/Utilities/Installer.php +++ b/app/Utilities/Installer.php @@ -205,7 +205,7 @@ class Installer public static function saveDbVariables($host, $port, $database, $username, $password, $prefix = null) { - $prefix = !is_null($prefix) ? $prefix : strtolower(Str::random(3) . '_'); + $prefix = !empty($prefix) ? $prefix : strtolower(Str::random(3) . '_'); // Update .env file static::updateEnv([