From 48fa05ad370a0df8062303b4ea41aabe3db74de0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Dec 2005 03:44:53 +0100 Subject: [PATCH] fix feed saving bug when categories are disabled (closes #20) --- prefs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5