summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index 5e3156126..e303c4049 100644
--- a/functions.js
+++ b/functions.js
@@ -1564,8 +1564,10 @@ function getSelectedTableRowIds(id) {
}
function editFeed(feed, event) {
-
try {
+ if (feed <= 0)
+ return alert(__("You can't edit this kind of feed."));
+
var query = "backend.php?op=pref-feeds&subop=editfeed&id=" +
param_escape(feed);