diff options
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); |