From 126122a00149facdd03364408a99d6cede5a98dc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 4 Aug 2008 14:58:34 +0000 Subject: Central: Fixed deleteItem and resendItem --- central/trunk/xmlrpc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'central') 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) $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; $getitem2 = mysql_query($getitem); $getitem3 = mysql_fetch_array($getitem2); - if ($getitem3['id'] == $id) + if ($getitem3['itemID'] == $id) { $delitem = "DELETE FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; $delitem2 = mysql_query($delitem); @@ -43,7 +43,7 @@ function resendItem($username, $verification, $verificationID, $id) $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; $getitem2 = mysql_query($getitem); $getitem3 = mysql_fetch_array($getitem2); - if ($getitem3['id'] == $id) + if ($getitem3['itemID'] == $id) { instaDisc_sendItem($username, $id); -- cgit 1.4.1