mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
If is metaconsole, param meta is setted to true
Former-commit-id: d652754fc131a0024c0c7846335a4362767e5f1d
This commit is contained in:
parent
45b0392d8d
commit
33db6d2f0c
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user