summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autobuild/results.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 41e98b5..b81555c 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -248,11 +248,11 @@ foreach ($failure as $rpm => $error) {
$parsed = parse_package($rpm);
$history_link = '<a href="history.php?package='.$parsed['package'].'">History</a>';
$status_html = "";
- if ($fixed[$rpm]) {
+ if (array_key_exists($rpm, $fixed)) {
$status_html = " <img src='icons/state-fixed.png' title='Fixed!' /> Fixed";
- } elseif ($removed[$rpm]) {
+ } elseif (array_key_exists($rpm, $removed)) {
$status_html = " <img src='icons/state-removed.png' title='Removed' /> Removed";
- } elseif ($broken[$rpm]) {
+ } elseif (array_key_exists($rpm, $broken)) {
$status_html = " <img src='icons/state-new.png' title='New!' /> New";
}
$error_html = $error;