Fixed errors for oracle databases

This commit is contained in:
Alejandro Gallardo Escobar 2015-06-16 15:39:27 +02:00
parent c437797ef7
commit e5685dfe07
2 changed files with 4 additions and 4 deletions

View File

@ -105,8 +105,8 @@ if ($create_alert) {
if ($action_select != 0) { if ($action_select != 0) {
$values = array(); $values = array();
$values['fires_min'] = get_parameter ('fires_min'); $values['fires_min'] = (int) get_parameter ('fires_min');
$values['fires_max'] = get_parameter ('fires_max'); $values['fires_max'] = (int) get_parameter ('fires_max');
$values['module_action_threshold'] = $values['module_action_threshold'] =
(int)get_parameter ('module_action_threshold'); (int)get_parameter ('module_action_threshold');

View File

@ -60,8 +60,8 @@ if ($add) {
ui_print_result_message (false, '', __('Could not be added').". ".__('No agents selected')); ui_print_result_message (false, '', __('Could not be added').". ".__('No agents selected'));
else { else {
$actions = get_parameter ('action'); $actions = get_parameter ('action');
$fires_min = get_parameter ('fires_min'); $fires_min = (int) get_parameter ('fires_min');
$fires_max = get_parameter ('fires_max'); $fires_max = (int) get_parameter ('fires_max');
if (!empty($actions)) { if (!empty($actions)) {
$agent_alerts = agents_get_alerts($id_agents); $agent_alerts = agents_get_alerts($id_agents);