Source
348
348
* @param string $operator
349
349
* @param string $value
350
350
* @param string $value2
351
351
*
352
352
* @return array
353
353
*/
354
354
function getConditionDescription($condition_type, $operator, $value, $value2) {
355
355
if ($condition_type == CONDITION_TYPE_EVENT_TAG_VALUE) {
356
356
$description = [_('Value of tag')];
357
357
$description[] = ' ';
358
-
$description[] = italic(CHtml::encode($value2));
358
+
$description[] = italic($value2);
359
359
$description[] = ' ';
360
360
}
361
361
elseif ($condition_type == CONDITION_TYPE_SUPPRESSED) {
362
362
return ($operator == CONDITION_OPERATOR_YES)
363
363
? [_('Problem is suppressed')]
364
364
: [_('Problem is not suppressed')];
365
365
}
366
366
elseif ($condition_type == CONDITION_TYPE_EVENT_ACKNOWLEDGED) {
367
367
return $value ? _('Event is acknowledged') : _('Event is not acknowledged');
368
368
}
369
369
else {
370
370
$description = [condition_type2str($condition_type)];
371
371
$description[] = ' ';
372
372
}
373
373
374
374
$description[] = condition_operator2str($operator);
375
375
$description[] = ' ';
376
-
$description[] = italic(CHtml::encode($value));
376
+
$description[] = italic($value);
377
377
378
378
return $description;
379
379
}
380
380
381
381
/**
382
382
* Gathers operation data and processes it based on operation type.
383
383
*
384
384
* @param array $operations Array of operations.
385
385
*
386
386
* @return array Returns an array of processed data.