Skip to content

Commit 7bd454b

Browse files
authored
[5.3][cypress] php warning (joomla#45030)
* cypress-php-warning * safer-check
1 parent f94fc56 commit 7bd454b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/components/com_users/src/Model/UserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function save($data)
292292
}
293293

294294
// Destroy all active sessions for the user after changing the password or blocking him
295-
if ($data['password2'] || $data['block']) {
295+
if (!empty($data['password2']) || $data['block']) {
296296
UserHelper::destroyUserSessions($user->id, true);
297297
}
298298

0 commit comments

Comments
 (0)