// $row['condition']
$condition_text = '---';
- if (array_key_exists($row['condition'], WrReport::$wrConditions)) $condition_text = WrReport::getWrConditionText($row['condition']);
+ if (in_array($row['condition'], WrReport::$wrConditions)) $condition_text = WrReport::getWrConditionText($row['condition']);
$td = $tr->appendElement('td');
if ($row['delete_date']) $td->appendElement('em')->appendText(wfMessage('wrreport-deletereport-deleted')->text());
else $td->appendText($condition_text);
else $date = strftime('%d.%m.', $date_report);
$td = $tr->appendElement('td');
- if (array_key_exists($condition, WrReport::$wrConditions)) {
+ if (in_array($condition, WrReport::$wrConditions)) {
$td->appendElement('a', array('href' => $title->getLocalURL() . '#' . Sanitizer::escapeIdForLink(wfMessage('wrreport-reports-sectionname'))))->appendText(WrReport::getWrConditionText($condition));
$td->appendText(' ');
$small = $td->appendElement('small');