Prevent javascript from choking on empty options in mt-daapd.conf

This commit is contained in:
Anders Betnér 2006-05-24 07:53:51 +00:00
parent b3d2ffc703
commit 62811717f7
1 changed files with 1 additions and 1 deletions

View File

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