From: Tim Düsterhus Date: Tue, 16 Feb 2021 14:11:30 +0000 (+0100) Subject: Fix calling UserAction::update() for 'counters' only X-Git-Tag: 5.4.0_Alpha_1~263 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c69efcec0261248287d9dfa177e87d2769cdc07;p=GitHub%2FWoltLab%2FWCF.git Fix calling UserAction::update() for 'counters' only This fixes: > Undefined array key "data" see 21dd1c3dafe4cfdc31748da4aae3027d63316d70 --- 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(