mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
qual: phpstan for htdocs/core/actions_comments.inc.php
htdocs/core/actions_comments.inc.php 41 Property Comment::$fk_element (int) does not accept array|string.
This commit is contained in:
parent
c451526d2a
commit
3da89dc35c
|
|
@ -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 New Issue
Block a user