安装bug

This commit is contained in:
2020-04-20 13:44:18 +08:00
parent ed57619b65
commit 13641e34b7
2 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ $app = new App();
if (is_file($app->getRootPath() . '.env') && is_file($app->getRootPath() . 'install.lock')) {
header('Location: index.php');exit();
}
session('error', 0);
define('ROOT_PATH', $app->getRootPath());
$action = $app->request->param('action', 'index');
@@ -679,7 +680,7 @@ function session($name, $value = false){
if ($name == '') {
return false;
}
if ($value) {
if (false !== $value) {
$_SESSION[$name] = $value;
}else{
return isset($_SESSION[$name]) ? $_SESSION[$name] : false;