From 8c69efcec0261248287d9dfa177e87d2769cdc07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 16 Feb 2021 15:11:30 +0100 Subject: [PATCH] Fix calling UserAction::update() for 'counters' only This fixes: > Undefined array key "data" see 21dd1c3dafe4cfdc31748da4aae3027d63316d70 --- wcfsetup/install/files/lib/data/user/UserAction.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 89fd1f4208..f21b97c2b3 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -345,10 +345,9 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio } if ( - \array_key_exists( - 'password', - $this->parameters['data'] - ) && $this->parameters['data']['password'] !== '' + isset($this->parameters['data']) + && \array_key_exists('password', $this->parameters['data']) + && $this->parameters['data']['password'] !== '' ) { foreach ($this->getObjects() as $object) { SessionHandler::getInstance()->deleteUserSessionsExcept( -- 2.20.1