Browse Source

fix sql error when subscribing to a feed using feed archive

Andrew Dolgov 8 years ago
parent
commit
cfc2fe50cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/rpc.php

+ 1 - 1
classes/rpc.php

@@ -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')");
 					}
 				}