diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-16 17:01:43 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-16 17:01:43 +0000 |
commit | 01669b5b3e38d4fd1138034458ad1e9339c8cf9c (patch) | |
tree | 5102afaff0a7232513917f9c163d037d56e7b1fe /central/trunk/includes | |
parent | c74b7d042daa0c419edfeaa97efbf7d8a216ac57 (diff) | |
download | instadisc-01669b5b3e38d4fd1138034458ad1e9339c8cf9c.tar.gz instadisc-01669b5b3e38d4fd1138034458ad1e9339c8cf9c.tar.bz2 instadisc-01669b5b3e38d4fd1138034458ad1e9339c8cf9c.zip |
Central: Fixed a few minor errors
Ok, this is sort of part [15], part strange unnoticed error(s). Refs #25
Diffstat (limited to 'central/trunk/includes')
-rw-r--r-- | central/trunk/includes/instadisc.php | 5 |
1 files changed, 3 insertions, 2 deletions
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, | |||
11 | $getverid2 = mysql_query($getverid); | 11 | $getverid2 = mysql_query($getverid); |
12 | $getverid3 = mysql_fetch_array($getverid2); | 12 | $getverid3 = mysql_fetch_array($getverid2); |
13 | if ($getverid3['id'] != $verificationID) | 13 | if ($getverid3['id'] != $verificationID) |
14 | { $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; | 14 | { |
15 | $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; | ||
15 | $getitem2 = mysql_query($getitem); | 16 | $getitem2 = mysql_query($getitem); |
16 | $getitem3 = mysql_fetch_array($getitem2); | 17 | $getitem3 = mysql_fetch_array($getitem2); |
17 | if ($getitem3[$nameField] == $username) | 18 | if ($getitem3[$nameField] == $username) |
@@ -136,7 +137,7 @@ function instaDisc_sendDatabase($cserver) | |||
136 | $client->send($msg); | 137 | $client->send($msg); |
137 | } | 138 | } |
138 | 139 | ||
139 | function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID) | 140 | function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID = 0) |
140 | { | 141 | { |
141 | $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; | 142 | $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; |
142 | $getuser2 = mysql_query($getuser); | 143 | $getuser2 = mysql_query($getuser); |