diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-22 15:36:16 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-22 15:36:16 +0000 |
commit | 7cea445927794450b03fe952cf7d235e7c266e4c (patch) | |
tree | f4e12731369881a8f423c0bc2b66cad0e1ac4b93 /central/trunk | |
parent | 676efa59260f0428026b80e25666784919c89142 (diff) | |
download | instadisc-7cea445927794450b03fe952cf7d235e7c266e4c.tar.gz instadisc-7cea445927794450b03fe952cf7d235e7c266e4c.tar.bz2 instadisc-7cea445927794450b03fe952cf7d235e7c266e4c.zip |
Central: Fixed typo in addSubscription
When the check for subscribing to a subscription twice was added, the wrong comparison operator was used (==), instead of (!=) which wasn't allowing any new subscriptions to be added. Fixes #45
Diffstat (limited to 'central/trunk')
-rw-r--r-- | central/trunk/xmlrpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 53e48b2..7ec5808 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php | |||
@@ -236,7 +236,7 @@ function addSubscription($username, $verification, $verificationID, $subscriptio | |||
236 | $getsub = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND username = \"" . mysql_real_escape_string($username) . "\" AND owner = \"false\""; | 236 | $getsub = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND username = \"" . mysql_real_escape_string($username) . "\" AND owner = \"false\""; |
237 | $getsub2 = mysql_query($getsub); | 237 | $getsub2 = mysql_query($getsub); |
238 | $getsub3 = mysql_fetch_array($getsub2); | 238 | $getsub3 = mysql_fetch_array($getsub2); |
239 | if ($getsub3['url'] == $subscription) | 239 | if ($getsub3['url'] != $subscription) |
240 | { | 240 | { |
241 | $inssub = "INSERT INTO subscriptions (url, username, owner, category) VALUES (\"" . mysql_real_escape_string($subscription) . "\", \"" . mysql_real_escape_string($username) . "\", \"false\", \"" . mysql_real_escape_string($category) . "\")"; | 241 | $inssub = "INSERT INTO subscriptions (url, username, owner, category) VALUES (\"" . mysql_real_escape_string($subscription) . "\", \"" . mysql_real_escape_string($username) . "\", \"false\", \"" . mysql_real_escape_string($category) . "\")"; |
242 | $inssub2 = mysql_query($inssub); | 242 | $inssub2 = mysql_query($inssub); |