]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions2.php
Added webkit-specific overflow scrolling for iOS devices to allow for inertial scrolling.
[tt-rss.git] / include / functions2.php
index cf1fba17cc39c9cb84dccf787aad9ad7e6125068..507c5343e46e0c3cca80106160cb000595cc885b 100644 (file)
                                // Try to check if SQL regexp implementation chokes on a valid regexp
 
 
-                               $result = db_query("SELECT true AS true_val FROM ttrss_entries,
-                                       ttrss_user_entries, ttrss_feeds
+                               $result = db_query("SELECT true AS true_val
+                                        FROM ttrss_entries
+                                        JOIN ttrss_user_entries ON ttrss_entries.id = ttrss_user_entries.ref_id
+                                        JOIN ttrss_feeds ON ttrss_feeds.id = ttrss_user_entries.feed_id
                                        WHERE $filter_query_part LIMIT 1", false);
 
                                if ($result) {
                        }
                }
 
-               if ($rv === '' && is_array($result)) {
+               if ($rv === '' && !empty($result)) {
                        $entries_html = array();
                        $entries = array();
                        $entries_inline = array();