From 4a8e916399a0b60c54007bd52e4ff6555b8906ac Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 16 Aug 2013 10:44:58 -0700 Subject: [PATCH] admin web: fix "error by platform" page if anon platform used --- html/ops/failure_result_summary_by_platform.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/html/ops/failure_result_summary_by_platform.php b/html/ops/failure_result_summary_by_platform.php index ff502f62bb..ee805836f0 100644 --- a/html/ops/failure_result_summary_by_platform.php +++ b/html/ops/failure_result_summary_by_platform.php @@ -67,9 +67,18 @@ table_header( while ($res = mysql_fetch_object($result)) { $exit_status_condition = "exit_status=$res->exit_status"; $av = BoincAppVersion::lookup_id($res->app_version_id); - $p = BoincPlatform::lookup_id($av->platformid); + if ($av) { + $p = BoincPlatform::lookup_id($av->platformid); + if ($p) { + $x = sprintf("%.2f", $av->version_num/100)." $p->name [$av->plan_class]"; + } else { + $x = sprintf("%.2f", $av->version_num/100)." MISSING PLATFORM $av->platformid [$av->plan_class]"; + } + } else { + $x = "App version $res->app_version_id"; + } table_row( - sprintf("%.2f", $av->version_num/100)." $p->name [$av->plan_class]", + $x, link_results( exit_status_string($res), $urlquery, "$exit_status_condition", "" ),