mirror of https://github.com/BOINC/boinc.git
Merge pull request #3553 from BOINC/dpa_user_count
web: fix warning when user has no projects yet
This commit is contained in:
commit
a05f16a43b
|
@ -77,7 +77,7 @@ function get_other_projects($user) {
|
|||
// auto-cast the project list to an array of stdClass projects
|
||||
//
|
||||
$remote = @json_decode(json_encode((array)$xml_object))->project;
|
||||
if (count($remote) == 1) {
|
||||
if ($remote && count($remote) == 1) {
|
||||
$remote = array($remote);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue