web: fix PHP warnings in GPU list page

This commit is contained in:
David Anderson 2014-10-13 09:08:19 -07:00
parent 59331061a9
commit 4d8d9eb790
1 changed files with 5 additions and 1 deletions

View File

@ -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) {