gluon-web: fix access to undefined in checkvalue()

Fixes: cfe1bba8 "gluon-web: fix radio button view of ListValues"
This commit is contained in:
Matthias Schiffer 2018-02-04 18:54:00 +01:00
parent 9ece0daa76
commit 623faf794a
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -159,7 +159,8 @@
return (value == ref);
} else {
t = document.getElementById(target + '.' + ref);
return (t.type == "radio" && t.checked);
if (t)
return (t.type == "radio" && t.checked);
}
return false;