Changed instruction column in event view

This commit is contained in:
fermin831 2015-12-30 12:19:46 +01:00
parent fac4e95a2a
commit 89b5bce09c
1 changed files with 11 additions and 0 deletions

View File

@ -514,6 +514,17 @@ foreach ($result as $event) {
$data[$i] = html_print_image('images/page_white_text.png', true, array('title' => str_replace("\n","<br>", io_safe_output($event["warning_instructions"]))));
}
break;
case 'system':
if(!empty($event["critical_instructions"])) {
$data[$i] = html_print_image('images/page_white_text.png', true, array('title' => str_replace("\n","<br>", io_safe_output($event["critical_instructions"]))));
}
elseif(!empty($event["warning_instructions"])) {
$data[$i] = html_print_image('images/page_white_text.png', true, array('title' => str_replace("\n","<br>", io_safe_output($event["warning_instructions"]))));
}
elseif(!empty($event["unknown_instructions"])) {
$data[$i] = html_print_image('images/page_white_text.png', true, array('title' => str_replace("\n","<br>", io_safe_output($event["unknown_instructions"]))));
}
break;
}
if (!isset($data[$i])) {