diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ccd0eb3136..a569b94437 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ + +2007-08-06 Sancho Lerena + + * pandoradb.sql, alert_manager.php: Alert time support uses TIME format + instead numeric (changes requested by esanchezm). + 2007-08-06 Sancho Lerena * include/functions_db.php: Fixed unsorted render (E.Ross). diff --git a/pandora_console/godmode/agentes/alert_manager.php b/pandora_console/godmode/agentes/alert_manager.php index 40f0a535cf..72ea9125db 100644 --- a/pandora_console/godmode/agentes/alert_manager.php +++ b/pandora_console/godmode/agentes/alert_manager.php @@ -95,13 +95,13 @@ $result=mysql_query($sql1); $string = $string."".$mymin.""; $string = $string."".$mymax.""; } - $mytimefrom =$row3["time_from"]; - $mytimeto =$row3["time_to"]; + $time_from_table =$row3["time_from"]; + $time_to_table =$row3["time_to"]; $string = $string.""; - if ($mytimeto == $mytimefrom) + if ($time_to_table == $time_from_table) $string .= $lang_label["N/A"]; else - $string .= render_time($mytimefrom)." - ".render_time($mytimeto); + $string .= substr($time_from_table,0,5)." - ".substr($time_to_table,0,5); $string = $string."".salida_limpia($row3["descripcion"]); $string = $string.""; @@ -150,6 +150,7 @@ $result=mysql_query($sql1); echo '
'; if (! isset($update_alert)) $update_alert = -1; + if ($update_alert != 1) { echo ''; } else { @@ -247,12 +248,12 @@ _data_
echo "".$lang_label["time_from"]; echo ""; echo "".$lang_label["time_to"]; echo "