diff --git a/html/user/gpu_list.php b/html/user/gpu_list.php index 2436333d2c..08b7a376f9 100644 --- a/html/user/gpu_list.php +++ b/html/user/gpu_list.php @@ -66,7 +66,11 @@ function get_gpu_list($vendor, $alt_vendor=null) { $clause .= " or plan_class like '%$alt_vendor%'"; } $avs = BoincAppVersion::enum($clause); - if (count($avs) == 0) return null; + if (count($avs) == 0) { + $x = new StdClass; + $x->total = array(); + return $x; + } $av_ids = ""; foreach($avs as $av) {