mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 15:58:19 +01:00
Fixed some inspection issues
This commit is contained in:
@@ -55,7 +55,7 @@ class UserCacheKeyGenerator
|
||||
|
||||
//If the user is null, then treat it as anonymous user.
|
||||
//When the anonymous user is passed as user then use this path too.
|
||||
if (null === $user || !($user instanceof User) || User::ID_ANONYMOUS === $user->getID()) {
|
||||
if (!($user instanceof User) || User::ID_ANONYMOUS === $user->getID()) {
|
||||
return 'user$_'.User::ID_ANONYMOUS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user