]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
implement one time passwords using TOTP
[tt-rss.git] / include / functions.php
index dd97522c4493b0f9b9a871e9e187339f94ae75eb..2924d17962fb64b70ed96a30cc6e27e160da3880 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 96);
+       define('SCHEMA_VERSION', 97);
 
        $fetch_last_error = false;
 
                                                break;
                                }
 
-                               if (isset($rule["feed_id"])) {
-                                       $qpart .= " AND feed_id " . ($rule["feed_id"] ? '= ' . $rule["feed_id"] : 'IS NULL');
+                               if (isset($rule["feed_id"]) && $rule["feed_id"] > 0) {
+                                       $qpart .= " AND feed_id = " . db_escape_string($rule["feed_id"]);
                                }
 
                                if (isset($rule["cat_id"])) {