From 01669b5b3e38d4fd1138034458ad1e9339c8cf9c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Aug 2008 17:01:43 +0000 Subject: Central: Fixed a few minor errors Ok, this is sort of part [15], part strange unnoticed error(s). Refs #25 --- central/trunk/includes/instadisc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'central/trunk/includes/instadisc.php') diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index e6fc862..225814e 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php @@ -11,7 +11,8 @@ function instaDisc_checkVerification($username, $verification, $verificationID, $getverid2 = mysql_query($getverid); $getverid3 = mysql_fetch_array($getverid2); if ($getverid3['id'] != $verificationID) - { $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; + { + $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; $getitem2 = mysql_query($getitem); $getitem3 = mysql_fetch_array($getitem2); if ($getitem3[$nameField] == $username) @@ -136,7 +137,7 @@ function instaDisc_sendDatabase($cserver) $client->send($msg); } -function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID) +function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID = 0) { $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; $getuser2 = mysql_query($getuser); -- cgit 1.4.1