Update User.php
fix user not logout in maintenance mode
This commit is contained in:
parent
1c36d0da30
commit
fee1c150b7
@ -159,6 +159,11 @@ class User
|
|||||||
|
|
||||||
public static function _info($id = 0)
|
public static function _info($id = 0)
|
||||||
{
|
{
|
||||||
|
global $config;
|
||||||
|
if ($config['maintenance_mode'] == true) {
|
||||||
|
// displayMaintenanceMessage();
|
||||||
|
r2(U . 'logout', 'd', '');
|
||||||
|
}
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
$id = User::getID();
|
$id = User::getID();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user