properly handle OR clauses in labels when generating headlines list (closes #220)

This commit is contained in:
Andrew Dolgov 2008-09-18 04:20:11 +01:00
parent 5ffd798dde
commit 4bc311fcb7
1 changed files with 4 additions and 4 deletions

View File

@ -3253,7 +3253,7 @@
$tmp_result = db_query($link, "SELECT sql_exp FROM ttrss_labels
WHERE id = '$label_id'");
$query_strategy_part = db_fetch_result($tmp_result, 0, "sql_exp");
$query_strategy_part = "(" . db_fetch_result($tmp_result, 0, "sql_exp") . ")";
if (!$query_strategy_part) {
return false;
@ -3392,10 +3392,10 @@
$view_query_part
$query_strategy_part ORDER BY $order_by
$limit_query_part $offset_query_part";
$result = db_query($link, $query);
if ($_GET["debug"]) print $query;
$result = db_query($link, $query);
} else {
// browsing by tag