Fix "Received Warnings" column with PHP <= 5.3

This commit is contained in:
ruan 2015-09-25 08:40:48 +02:00
parent 175e1703a6
commit 3e9a0698a2

View File

@ -25,7 +25,7 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
'Warned By' => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
'Reason' => $page->clean($row['reason']),
'Warned Until' => $page->expiry($row),
'Received Warning' => $row['warned'] ? "Yes" : "No",
'Received Warning' => $page->active($row, 'warned') ? "Yes" : "No",
));
}
$page->table_end();