Merge pull request #27794 from thibdrev/patch-13

qual: phpstan for htdocs/core/actions_comments.inc.php
This commit is contained in:
Laurent Destailleur 2024-01-26 02:14:52 +01:00 committed by GitHub
commit f76a9c2e5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ if ($action == 'addcomment') {
if (!empty($description)) {
$comment->description = $description;
$comment->datec = dol_now();
$comment->fk_element = GETPOST('id', 'int');
$comment->fk_element = GETPOSTINT('id');
$comment->element_type = GETPOST('comment_element_type', 'alpha');
$comment->fk_user_author = $user->id;
$comment->entity = $conf->entity;