diff --git a/backend.php b/backend.php
index 027c7060d..9e47ac38c 100644
--- a/backend.php
+++ b/backend.php
@@ -204,7 +204,7 @@
print "
" . $line["title"] . " |
";
- if ($ext == "SEARCH") {
+ if ($subop == "search") {
$search = $_GET["search"];
$search_query_part = "(upper(title) LIKE upper('%$search%')
OR content LIKE '%$search%') AND";
diff --git a/tt-rss.js b/tt-rss.js
index 16ca4cf1a..1776c1c33 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -297,7 +297,7 @@ function search(feed, sender) {
document.getElementById('content').innerHTML=' ';
xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
- "&search=" + param_escape(sender.value) + "&ext=SEARCH", true);
+ "&search=" + param_escape(sender.value) + "&subop=search", true);
xmlhttp.onreadystatechange=viewfeed_callback;
xmlhttp.send(null);