mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-21 06:21:19 -04:00
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) {
|
sections.each(function (section) {
|
||||||
var sectionName = section.nodeName;
|
var sectionName = section.nodeName;
|
||||||
$A(section.childNodes).each(function (node) {
|
$A(section.childNodes).each(function (node) {
|
||||||
if (node.firstChild.hasChildNodes()) {
|
if (node.firstChild && node.firstChild.hasChildNodes()) {
|
||||||
var values = [];
|
var values = [];
|
||||||
$A(node.childNodes).each(function (n) {
|
$A(node.childNodes).each(function (n) {
|
||||||
values.push(Element.textContent(n));
|
values.push(Element.textContent(n));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user