From 809c8e625bc45253b9478394d487605ce59367ee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 5 Jan 2013 01:45:47 +0400 Subject: [PATCH] fix filter testing on mysql --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.php b/include/functions.php index cd15cd419..7dc109460 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2281,11 +2281,11 @@ $filter_query_part = filter_to_sql($link, $filter, $owner_uid); // Try to check if SQL regexp implementation chokes on a valid regexp - $result = db_query($link, "SELECT true AS true FROM ttrss_entries, + $result = db_query($link, "SELECT true AS true_val FROM ttrss_entries, ttrss_user_entries, ttrss_feeds, ttrss_feed_categories WHERE $filter_query_part LIMIT 1", false); - $test = db_fetch_result($result, 0, "true"); + $test = db_fetch_result($result, 0, "true_val"); if (!$test) { $filter_query_part = "false AND";