fix feed saving bug when categories are disabled (closes #20)

master
Andrew Dolgov 19 years ago
parent 144c23f16e
commit 48fa05ad37

@ -676,7 +676,11 @@ function feedEditSave() {
var purge_intl = document.getElementById("iedit_purgintl").value;
var fcat = document.getElementById("iedit_fcat");
var fcat_id = fcat[fcat.selectedIndex].id;
var fcat_id = 0;
if (fcat) {
fcat_id = fcat[fcat.selectedIndex].id;
}
var pfeed = document.getElementById("iedit_parent_feed");
var parent_feed_id = pfeed[pfeed.selectedIndex].id;

Loading…
Cancel
Save