Changeset 6738

Show
Ignore:
Timestamp:
10/06/08 16:38:17 (2 months ago)
Author:
jmathis
Message:

Check if last check is not null => display N/A => better that 01/01/1970

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/monitoring/engine/MakeXML_Ndo_host.php

    r6646 r6738  
    210210                $buffer .= '<a><![CDATA['. $ndo["address"]  . ']]></a>'; 
    211211                $buffer .= '<ou><![CDATA['. $ndo["output"]  . ']]></ou>'; 
    212                 $buffer .= '<lc>'. $centreonGMT->getDate($date_time_format_status, $ndo["last_check"]) . '</lc>'; 
     212                $buffer .= '<lc>'. (($ndo["last_check"] != 0) ? $centreonGMT->getDate($date_time_format_status, $ndo["last_check"]) : "N/A") . '</lc>'; 
    213213                $buffer .= '<cs>'. $tab_status_host[$ndo["current_state"]] . '</cs>'; 
    214214        $buffer .= '<pha>'. $ndo["problem_has_been_acknowledged"] .'</pha>'; 
    215215        $buffer .= '<pce>'.$ndo["passive_checks_enabled"] .'</pce>'; 
    216216        $buffer .= '<ace>'.$ndo["active_checks_enabled"] .'</ace>'; 
    217         $buffer .= '<lsc>'.$duration.'</lsc>'; 
     217        $buffer .= '<lsc>'.($duration ? $duration : "N/A") .'</lsc>'; 
    218218        $buffer .= '<ha>'.$ndo["problem_has_been_acknowledged"]  .'</ha>';/// 
    219219        $buffer .= '<hae>'.$ndo["active_checks_enabled"] .'</hae>';///