Update card.php

This commit is contained in:
Laurent Destailleur 2022-06-01 19:34:29 +02:00 committed by GitHub
parent adb37a5f5f
commit 1ef66c208f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ if (empty($reshook)) {
$id = $object->create($user); $id = $object->create($user);
if ($id > 0) { if ($id > 0) {
$resPass = ''; $resPass = 0;
if (GETPOST('password', 'none')) { if (GETPOST('password', 'none')) {
$resPass = $object->setPassword($user, GETPOST('password', 'none')); $resPass = $object->setPassword($user, GETPOST('password', 'none'));
} }