about summary refs log tree commit diff stats
path: root/central/trunk
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-04 20:00:34 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-04 20:00:34 +0000
commitb4874f6c12de0c3f38b45033f9c346e86fd6747e (patch)
tree49840120b4cb8f0f46b78f5945cd28105a74d46e /central/trunk
parent92f0a83a8d0c37524977908bd3447df1039f950f (diff)
downloadinstadisc-b4874f6c12de0c3f38b45033f9c346e86fd6747e.tar.gz
instadisc-b4874f6c12de0c3f38b45033f9c346e86fd6747e.tar.bz2
instadisc-b4874f6c12de0c3f38b45033f9c346e86fd6747e.zip
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.
Diffstat (limited to 'central/trunk')
-rw-r--r--central/trunk/xmlrpc.php2
1 files changed, 1 insertions, 1 deletions
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
160 instaDisc_sendDatabase($cserver); 160 instaDisc_sendDatabase($cserver);
161 } 161 }
162 162
163 $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\""; 163 $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND owner = \"false\"";
164 $getsed2 = mysql_query($getsed); 164 $getsed2 = mysql_query($getsed);
165 $i=0; 165 $i=0;
166 while ($getsed3[$i] = mysql_fetch_array($getsed2)) 166 while ($getsed3[$i] = mysql_fetch_array($getsed2))