From 7cea445927794450b03fe952cf7d235e7c266e4c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 22 Aug 2008 15:36:16 +0000 Subject: 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 --- central/trunk/xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'central/trunk/xmlrpc.php') 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 $getsub = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND username = \"" . mysql_real_escape_string($username) . "\" AND owner = \"false\""; $getsub2 = mysql_query($getsub); $getsub3 = mysql_fetch_array($getsub2); - if ($getsub3['url'] == $subscription) + if ($getsub3['url'] != $subscription) { $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) . "\")"; $inssub2 = mysql_query($inssub); -- cgit 1.4.1