2012-06-06 Hirofumi Kosaka <kosaka@rworks.jp>

* godmode/agentes/planned_downtime.php: fixed that 'Affect'
	column at 'planned downtime' may show bad values. cleaned
	source code style.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
hkosaka 2012-06-06 07:55:31 +00:00
parent 308300903b
commit d349c0ebf3
2 changed files with 124 additions and 119 deletions

View File

@ -1,3 +1,9 @@
2012-06-06 Hirofumi Kosaka <kosaka@rworks.jp>
* godmode/agentes/planned_downtime.php: fixed that 'Affect'
column at 'planned downtime' may show bad values. cleaned
source code style.
2012-06-05 Dario Rodriguez <dario.rodriguez@artica.es>
* operation/tree.php: Fixed a missing group icons

View File

@ -193,7 +193,7 @@ if ($create_downtime || $update_downtime) {
////////////////////////////////
// Show create / update form
////////////////////////////////
if (($first_create != 0) OR ($first_update != 0)){
if (($first_create != 0) OR ($first_update != 0)){
// Have any data to show ?
if ($id_downtime > 0) {
switch ($config["dbtype"]) {
@ -354,7 +354,6 @@ if ($create_downtime || $update_downtime) {
$data[1] = db_get_sql ("SELECT nombre FROM tgrupo WHERE id_grupo = ". $downtime["id_grupo"]);
$data[2] = ui_print_os_icon ($downtime["id_os"], true, true);
$data[3] = $downtime["ultimo_contacto"];
@ -415,7 +414,7 @@ else {
$data[2] = ui_print_group_icon ($downtime['id_group'], true);
$data[3] = date ("Y-m-d H:i", $downtime['date_from']);
$data[4] = date ("Y-m-d H:i", $downtime['date_to']);
if($only_alerts) {
if($downtime['only_alerts']) {
$data[5] = __('Only alerts');
}
else {