Fix calling UserAction::update() for 'counters' only
[GitHub/WoltLab/WCF.git] / 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(