If is metaconsole, param meta is setted to true

Former-commit-id: d652754fc131a0024c0c7846335a4362767e5f1d
This commit is contained in:
Luis Calvo 2019-04-04 18:13:29 +02:00
parent 45b0392d8d
commit 33db6d2f0c

View File

@ -11608,7 +11608,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')) {
@ -11621,7 +11623,6 @@ function api_set_add_event_comment($id, $thrash2, $other, $thrash3)
return;
} else if ($other['type'] == 'array') {
$comment = $other['data'][0];
$meta = $other['data'][1];
$history = $other['data'][2];
$status = events_comment(