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

This commit is contained in:
Andrew Dolgov 2005-12-30 03:44:53 +01:00
parent 144c23f16e
commit 48fa05ad37

View file

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