Fix calling UserAction::update() for 'counters' only
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 14:11:30 +0000 (15:11 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 14:11:30 +0000 (15:11 +0100)
This fixes:
> Undefined array key "data"

see 21dd1c3dafe4cfdc31748da4aae3027d63316d70

wcfsetup/install/files/lib/data/user/UserAction.class.php

index 89fd1f42082cb7bcced4c896aef9570df7c8f215..f21b97c2b3b49e3b5539ee1672a7c89a74f01088 100644 (file)
@@ -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(