From: Andrew Dolgov Date: Fri, 30 Dec 2005 02:44:53 +0000 (+0100) Subject: fix feed saving bug when categories are disabled (closes #20) X-Git-Tag: schema_freeze_for_1.1.2~41 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=48fa05ad370a0df8062303b4ea41aabe3db74de0;p=tt-rss.git fix feed saving bug when categories are disabled (closes #20) --- diff --git a/prefs.js b/prefs.js index 82196d2a..744a3b38 100644 --- a/prefs.js +++ b/prefs.js @@ -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;