diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-04 14:58:34 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-04 14:58:34 +0000 |
| commit | 126122a00149facdd03364408a99d6cede5a98dc (patch) | |
| tree | ee16bc1f1f88105fbb447a3043766eeef3d03c70 /central/trunk/xmlrpc.php | |
| parent | ed81d10a8b7a3ed4d3d71908074415fd615c5706 (diff) | |
| download | instadisc-126122a00149facdd03364408a99d6cede5a98dc.tar.gz instadisc-126122a00149facdd03364408a99d6cede5a98dc.tar.bz2 instadisc-126122a00149facdd03364408a99d6cede5a98dc.zip | |
Central: Fixed deleteItem and resendItem
Diffstat (limited to 'central/trunk/xmlrpc.php')
| -rw-r--r-- | central/trunk/xmlrpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
| diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 95d439d..6f46c53 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php | |||
| @@ -24,7 +24,7 @@ function deleteItem($username, $verification, $verificationID, $id) | |||
| 24 | $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; | 24 | $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; |
| 25 | $getitem2 = mysql_query($getitem); | 25 | $getitem2 = mysql_query($getitem); |
| 26 | $getitem3 = mysql_fetch_array($getitem2); | 26 | $getitem3 = mysql_fetch_array($getitem2); |
| 27 | if ($getitem3['id'] == $id) | 27 | if ($getitem3['itemID'] == $id) |
| 28 | { | 28 | { |
| 29 | $delitem = "DELETE FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; | 29 | $delitem = "DELETE FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; |
| 30 | $delitem2 = mysql_query($delitem); | 30 | $delitem2 = mysql_query($delitem); |
| @@ -43,7 +43,7 @@ function resendItem($username, $verification, $verificationID, $id) | |||
| 43 | $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; | 43 | $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; |
| 44 | $getitem2 = mysql_query($getitem); | 44 | $getitem2 = mysql_query($getitem); |
| 45 | $getitem3 = mysql_fetch_array($getitem2); | 45 | $getitem3 = mysql_fetch_array($getitem2); |
| 46 | if ($getitem3['id'] == $id) | 46 | if ($getitem3['itemID'] == $id) |
| 47 | { | 47 | { |
| 48 | instaDisc_sendItem($username, $id); | 48 | instaDisc_sendItem($username, $id); |
| 49 | 49 | ||
