* Add write config file when config is empty.

This commit is contained in:
zhaoke
2023-09-25 11:00:10 +08:00
parent ec16f53c40
commit 01faf512d6
+1 -1
View File
@@ -630,7 +630,7 @@ class installModel extends model
{
$configRoot = $this->app->getConfigRoot();
$myConfigFile = $configRoot . 'my.php';
if(file_exists($myConfigFile)) return;
if(file_exists($myConfigFile) && trim(file_get_contents($myConfigFile))) return;
/* Set the session save path when the session save path is null. */
$customSession = $this->setSessionPath();