Merge pull request #27794 from thibdrev/patch-13
qual: phpstan for htdocs/core/actions_comments.inc.php
This commit is contained in:
commit
f76a9c2e5e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue