server status page: fix PHP warning

This commit is contained in:
David Anderson 2024-07-18 14:40:25 -07:00
parent 60005c346a
commit 16dba91d11
1 changed files with 6 additions and 4 deletions

View File

@ -256,10 +256,12 @@ function show_status_xml($x) {
item_xml("name", $app->name);
item_xml("unsent", $app->unsent);
item_xml("in_progress", $app->in_progress);
item_xml("avg_runtime", $app->info->avg);
item_xml("min_runtime", $app->info->min);
item_xml("max_runtime", $app->info->max);
item_xml("users", $app->info->users);
if ($app->info) {
item_xml("avg_runtime", $app->info->avg);
item_xml("min_runtime", $app->info->min);
item_xml("max_runtime", $app->info->max);
item_xml("users", $app->info->users);
}
echo "</app>\n";
}
echo "</tasks_by_app>