From cf913374ab26a593a317f971eeda8b036eefcbca Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Fri, 4 Dec 2020 14:10:23 +0100 Subject: [PATCH] Fix resetting user sessions when editing users via ACP Fixes #3780 --- wcfsetup/install/files/lib/data/user/UserAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index c13eb933cb..881bfda5cb 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -328,7 +328,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio } } - if (array_key_exists('password', $this->parameters['data'])) { + if (array_key_exists('password', $this->parameters['data']) && $this->parameters['data']['password'] !== '') { foreach ($this->getObjects() as $object) { SessionHandler::getInstance()->deleteUserSessionsExcept($object->getDecoratedObject(), SessionHandler::getInstance()->sessionID); SessionHandler::getInstance()->deleteAcpSessionsExcept($object->getDecoratedObject(), SessionHandler::getInstance()->sessionID); -- 2.20.1