Merge branch 'ent-3683-entities-appear-on-event-comment-api-call' into 'develop'

Removed unnecesary io_safe_inpunt on   from functions_api.php

See merge request artica/pandorafms!2256

Former-commit-id: 870cdc2ea85241945628ac4a41864a0d54a57bea
This commit is contained in:
Alejandro Fraguas 2019-04-09 11:19:10 +02:00
commit 351b7218ee
1 changed files with 4 additions and 3 deletions

View File

@ -11615,7 +11615,9 @@ function api_set_add_event_comment($id, $thrash2, $other, $thrash3)
global $config;
if (defined('METACONSOLE')) {
return;
$meta = true;
} else {
$meta = $other['data'][1];
}
if (!check_acl($config['id_user'], 0, 'EW')) {
@ -11627,8 +11629,7 @@ function api_set_add_event_comment($id, $thrash2, $other, $thrash3)
returnError('error_parameter', 'Error in the parameters.');
return;
} else if ($other['type'] == 'array') {
$comment = io_safe_input($other['data'][0]);
$meta = $other['data'][1];
$comment = $other['data'][0];
$history = $other['data'][2];
$status = events_comment(