diff --git a/functions.js b/functions.js
index 7f9f1d21e..42e226192 100644
--- a/functions.js
+++ b/functions.js
@@ -1768,21 +1768,43 @@ function addLabelExample() {
}
if (op == "kw_title") {
+ if (p.value == "") {
+ alert("This action requires a parameter.");
+ return false;
+ }
tmp = tmp + "ttrss_entries.title like '%"+p.value+"%'";
}
+
if (op == "kw_content") {
+ if (p.value == "") {
+ alert("This action requires a parameter.");
+ return false;
+ }
+
tmp = tmp + "ttrss_entries.content like '%"+p.value+"%'";
}
if (op == "scoreE") {
+ if (isNaN(parseInt(p.value))) {
+ alert("This action expects numeric parameter.");
+ return false;
+ }
tmp = tmp + "score = " + p.value;
}
if (op == "scoreG") {
+ if (isNaN(parseInt(p.value))) {
+ alert("This action expects numeric parameter.");
+ return false;
+ }
tmp = tmp + "score > " + p.value;
}
if (op == "scoreL") {
+ if (isNaN(parseInt(p.value))) {
+ alert("This action expects numeric parameter.");
+ return false;
+ }
tmp = tmp + "score < " + p.value;
}
diff --git a/functions.php b/functions.php
index 23d618b8d..eb67f520e 100644
--- a/functions.php
+++ b/functions.php
@@ -5660,9 +5660,9 @@
print "";
print "";
print "";
- print "";
- print "";
- print "";
+ print "";
+ print "";
+ print "";
print "";
print "";