[*] сходу скорректирована
This commit is contained in:
1 parent
4b510c78e7
commit
8d64addc17
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -138,7 +138,7 @@
|
||||
User::logout();
|
||||
}
|
||||
|
||||
$ddosProtectObject = new DDosProtection('bootstrap');
|
||||
$ddosProtectObject = new DDosProtection(basename(__FILE__));
|
||||
try {
|
||||
$userId = User::getCurrentUserId();
|
||||
} catch (CoreException $e) {
|
||||
@@ -146,8 +146,8 @@
|
||||
}
|
||||
if (!empty($userId)) {
|
||||
try {
|
||||
$ddosProtectObject->setUserId($userId);
|
||||
$USER = new User($userId);
|
||||
$ddosProtectObject->setUserId($userId);
|
||||
} catch (CoreException $e) {
|
||||
$USER = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user