]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix sql error when subscribing to a feed using feed archive
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 5 Jul 2016 08:48:36 +0000 (11:48 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 5 Jul 2016 08:48:36 +0000 (11:48 +0300)
classes/rpc.php

index 617c7a22b8e9db334a18292b6bc97ee199a7c501..9eb8dbd70e3285c19c02fa6539a78a64fbb5f5ca 100755 (executable)
@@ -438,7 +438,7 @@ class RPC extends Handler_Protected {
                                        if ($this->dbh->num_rows($result) == 0) {
                                                $result = $this->dbh->query("INSERT INTO ttrss_feeds
                                                                                (owner_uid,feed_url,title,cat_id,site_url)
-                                                                       VALUES ('$id','".$_SESSION["uid"]."',
+                                                                       VALUES ('".$_SESSION["uid"]."',
                                                                        '$feed_url', '$title', NULL, '$site_url')");
                                        }
                                }