]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix filter testing on mysql
authorAndrew Dolgov <fox@fakecake.org>
Fri, 4 Jan 2013 21:45:47 +0000 (01:45 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 4 Jan 2013 21:45:47 +0000 (01:45 +0400)
include/functions.php

index cd15cd419a3537977f57921f8b1bbd29c9a047a6..7dc109460270cf479ff0071662aa77d51938300c 100644 (file)
                                $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";