diff --git a/backend.php b/backend.php index 860fec181..72b563d05 100644 --- a/backend.php +++ b/backend.php @@ -2348,7 +2348,11 @@ if ($num_matches > 0) { - print "

Query returned $num_matches matches, showing up to first 10:

"; + if ($num_matches > 10) { + $showing_msg = ", showing first 10"; + } + + print "

Query returned $num_matches matches$showing_msg:

"; $result = db_query($link, "SELECT ttrss_entries.title, @@ -2453,10 +2457,11 @@ print "   - SQL expression + Caption + SQL Expression (?) - Caption"; + "; $lnum = 0; @@ -2485,12 +2490,12 @@ print ""; - print "" . - $line["sql_exp"] . ""; - print "" . $line["description"] . ""; - + + print "" . + $line["sql_exp"] . ""; + print ""; ++$lnum; @@ -2506,23 +2511,13 @@ print "

"; - if ($subop == "edit") { - print "Edit label: - - - "; - - } else { - print " + print " Selection: "; - } + onclick=\"javascript:removeSelectedLabels()\" value=\"Remove\">"; + } else { print "

No labels defined.

"; }