Prevent javascript from choking on empty options in mt-daapd.conf
This commit is contained in:
parent
b3d2ffc703
commit
62811717f7
|
@ -84,7 +84,7 @@ var ConfigInitialValues = {
|
|||
sections.each(function (section) {
|
||||
var sectionName = section.nodeName;
|
||||
$A(section.childNodes).each(function (node) {
|
||||
if (node.firstChild.hasChildNodes()) {
|
||||
if (node.firstChild && node.firstChild.hasChildNodes()) {
|
||||
var values = [];
|
||||
$A(node.childNodes).each(function (n) {
|
||||
values.push(Element.textContent(n));
|
||||
|
|
Loading…
Reference in New Issue