mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
tu.php: Remove trailing whitespace.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
e936dc9770
commit
f6387253b4
1 changed files with 4 additions and 4 deletions
|
@ -27,12 +27,12 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
$dbh = db_connect();
|
$dbh = db_connect();
|
||||||
$results = db_query($q, $dbh);
|
$results = db_query($q, $dbh);
|
||||||
$row = mysql_fetch_assoc($results);
|
$row = mysql_fetch_assoc($results);
|
||||||
|
|
||||||
if (empty($row)) {
|
if (empty($row)) {
|
||||||
print __("Could not retrieve proposal details.");
|
print __("Could not retrieve proposal details.");
|
||||||
} else {
|
} else {
|
||||||
$isrunning = $row['End'] > time() ? 1 : 0;
|
$isrunning = $row['End'] > time() ? 1 : 0;
|
||||||
|
|
||||||
$qvoted = "SELECT * FROM TU_Votes WHERE ";
|
$qvoted = "SELECT * FROM TU_Votes WHERE ";
|
||||||
$qvoted.= "VoteID = " . $row['ID'] . " AND ";
|
$qvoted.= "VoteID = " . $row['ID'] . " AND ";
|
||||||
$qvoted.= "UserID = " . uid_from_sid($_COOKIE["AURSID"]);
|
$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.");
|
$errorvote = __("You've already voted for this proposal.");
|
||||||
# Update if they voted
|
# Update if they voted
|
||||||
$hasvoted = mysql_num_rows(db_query($qvoted, $dbh));
|
$hasvoted = mysql_num_rows(db_query($qvoted, $dbh));
|
||||||
|
|
||||||
$results = db_query($q, $dbh);
|
$results = db_query($q, $dbh);
|
||||||
$row = mysql_fetch_assoc($results);
|
$row = mysql_fetch_assoc($results);
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$dbh = db_connect();
|
$dbh = db_connect();
|
||||||
|
|
||||||
$limit = $pp;
|
$limit = $pp;
|
||||||
if (isset($_GET['off']))
|
if (isset($_GET['off']))
|
||||||
$offset = $_GET['off'];
|
$offset = $_GET['off'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue