安装bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user