From 4d8d9eb790d92462ca85df64f3f593a0862e94c1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 13 Oct 2014 09:08:19 -0700 Subject: [PATCH] web: fix PHP warnings in GPU list page --- html/user/gpu_list.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {