Commit f6387253 authored by Loui Chang's avatar Loui Chang
Browse files

tu.php: Remove trailing whitespace.



Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent e936dc97
......@@ -27,12 +27,12 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$dbh = db_connect();
$results = db_query($q, $dbh);
$row = mysql_fetch_assoc($results);
if (empty($row)) {
print __("Could not retrieve proposal details.");
} else {
$isrunning = $row['End'] > time() ? 1 : 0;
$qvoted = "SELECT * FROM TU_Votes WHERE ";
$qvoted.= "VoteID = " . $row['ID'] . " AND ";
$qvoted.= "UserID = " . uid_from_sid($_COOKIE["AURSID"]);
......@@ -85,7 +85,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$errorvote = __("You've already voted for this proposal.");
# Update if they voted
$hasvoted = mysql_num_rows(db_query($qvoted, $dbh));
$results = db_query($q, $dbh);
$row = mysql_fetch_assoc($results);
}
......@@ -98,7 +98,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
} else {
$dbh = db_connect();
$limit = $pp;
if (isset($_GET['off']))
$offset = $_GET['off'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment