[Web] Fix app password editing, fixes #4239

This commit is contained in:
andryyy
2021-09-01 18:11:00 +02:00
parent a6c9b8003f
commit e616755072
4 changed files with 6 additions and 7 deletions

View File

@@ -136,7 +136,7 @@ function app_passwd($_action, $_data = null) {
$_SESSION['return'][] = array(
'type' => 'success',
'log' => array(__FUNCTION__, $_action, $_data_log),
'msg' => array('object_modified', htmlspecialchars($ids))
'msg' => array('object_modified', htmlspecialchars(implode(', ', $ids)))
);
}
break;
@@ -189,7 +189,7 @@ function app_passwd($_action, $_data = null) {
`active`
FROM `app_passwd`
WHERE `id` = :id");
$stmt->execute(array(':id' => $_data['id']));
$stmt->execute(array(':id' => $_data));
$app_passwd_data = $stmt->fetch(PDO::FETCH_ASSOC);
if (empty($app_passwd_data)) {
return false;
@@ -202,4 +202,4 @@ function app_passwd($_action, $_data = null) {
return $app_passwd_data;
break;
}
}
}