mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
create variable before referencing it with .=
fixes php notice level error: Undefined variable: whovoted in ../tu.php Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
33a765ef03
commit
10ea5f5ff6
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
ORDER BY Username";
|
ORDER BY Username";
|
||||||
$result = db_query($qwhoVoted,$dbh);
|
$result = db_query($qwhoVoted,$dbh);
|
||||||
if (mysql_num_rows($result) > 0) {
|
if (mysql_num_rows($result) > 0) {
|
||||||
|
$whovoted = '';
|
||||||
while ($who = mysql_fetch_assoc($result)) {
|
while ($who = mysql_fetch_assoc($result)) {
|
||||||
$whovoted.= '<a href="account.php?Action=AccountInfo&ID='.$who['UserID'].'">'.$who['Username'].'</a> ';
|
$whovoted.= '<a href="account.php?Action=AccountInfo&ID='.$who['UserID'].'">'.$who['Username'].'</a> ';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue