From b4874f6c12de0c3f38b45033f9c346e86fd6747e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 4 Aug 2008 20:00:34 +0000 Subject: Central: Fixed double-sending issue Previously, it was thought that the Client was spawing two identical HandleItemThreads, but the real reason was that the Central Server was sending the item twice because the subscribement was in the database twice, once because for ownership, the second for subscribement. Now the Central Server has been fixed to prevent this error when a user is subscribed to a subscription they own. Fixes #15. --- central/trunk/xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 6f46c53..a2d3ba9 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php @@ -160,7 +160,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription instaDisc_sendDatabase($cserver); } - $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\""; + $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND owner = \"false\""; $getsed2 = mysql_query($getsed); $i=0; while ($getsed3[$i] = mysql_fetch_array($getsed2)) -- cgit 1.4.1