Update User.php

fix user not logout in maintenance mode
This commit is contained in:
Focuslinkstech 2024-05-21 22:39:41 +01:00
parent 1c36d0da30
commit fee1c150b7

View File

@ -159,6 +159,11 @@ class User
public static function _info($id = 0)
{
global $config;
if ($config['maintenance_mode'] == true) {
// displayMaintenanceMessage();
r2(U . 'logout', 'd', '');
}
if (!$id) {
$id = User::getID();
}