Menu

#5 There is a typo in the check_status function in lib_debug

0.6
open
2
2008-11-17
2008-11-17
No

Currently, the code shows:

foreach($status as $stat_name=>$state) {
$stat_head.="<th>$stat_name</th>";
if($states['state']==0) {$stat="Down since {$state['time']}";} else {$stat="Up at {$state['time']}";}
$stat_line.="<td>$stat</td>";
}

Whereas it should show

foreach($status as $stat_name=>$state) {
$stat_head.="<th>$stat_name</th>";
if($state['state']==0) {$stat="Down since {$state['time']}";} else {$stat="Up at {$state['time']}";}
$stat_line.="<td>$stat</td>";
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB