web: fix bug that hid GPUs in host page

The PHP code (gpu_desc()) skipped GPUs with < 5 description fields.
Older clients return only 4 fields.
This commit is contained in:
David Anderson 2024-07-23 12:44:46 -07:00
parent ab1085b25f
commit 69176b0650
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ function gpu_desc($x, $detail=true) {
//print_r($d);
if ($d[0] == "BOINC") continue;
if ($d[0] == "vbox") continue;
if (count($d) < 5) continue;
if (count($d) < 4) continue;
if ($str) $str .= "<p>";
if ($d[2]!="" && $d[2]!="1") $str .= "[".$d[2]."] ";
if ($d[0] == "CUDA") {