Mercurial > hg > fapweb
changeset 87:3da47d3e6a3c
Remove a function, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Oct 2013 09:47:15 +0300 |
parents | 4684336cec09 |
children | 784953d60ba5 |
files | msite.inc.php |
diffstat | 1 files changed, 2 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Fri Oct 18 09:10:06 2013 +0300 +++ b/msite.inc.php Fri Oct 18 09:47:15 2013 +0300 @@ -295,7 +295,7 @@ error_log("Invalid stPrepareSQL() call, no arguments!"); return FALSE; } - + $fmt = $argv[0]; $len = strlen($fmt); $sql = ""; @@ -467,7 +467,7 @@ // Check if it already exists, to avoid duplicates // We need custom query code here, because stFetchSQLColumn() // won't work due to it returning FALSE in error cases. - $sql = stPrepareSQL("SELECT * FROM attendees WHERE key=%s", $key); + $sql = stPrepareSQL("SELECT * FROM votekeys WHERE key=%s", $key); if (($res = @$db->query($sql)) !== FALSE) { // Did we get results? @@ -486,22 +486,6 @@ } -function stUpdateUserKey($uid) -{ - if (($res = stGenerateUserKey()) !== FALSE) - { - // Nope, add key into database - $sql = stPrepareSQL( - "UPDATE attendees SET key=%s,active=0 WHERE id=%d", - $key, $uid); - - return stExecSQL($sql); - } - else - return FALSE; -} - - function stSetStatus($val, $msg) { global $statusSet;