summaryrefslogtreecommitdiffstats
path: root/web/html/tu.php
diff options
context:
space:
mode:
authorelij <elij.mx@gmail.com>2011-04-25 23:02:38 -0700
committerLukas Fleischer <archlinux@cryptocrack.de>2011-04-27 14:50:28 +0200
commit10ea5f5ff63ee7626ba4ad5dfdf3a711c31249e3 (patch)
treeeceb4a3a35e3c035bbc3804381b686b80e29614a /web/html/tu.php
parent33a765ef039552f7ecbd3cfe8b028df98f840f90 (diff)
downloadaurweb-10ea5f5ff63ee7626ba4ad5dfdf3a711c31249e3.tar.xz
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>
Diffstat (limited to 'web/html/tu.php')
-rw-r--r--web/html/tu.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index dc1c5e3..c5cc36b 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -46,6 +46,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
ORDER BY Username";
$result = db_query($qwhoVoted,$dbh);
if (mysql_num_rows($result) > 0) {
+ $whovoted = '';
while ($who = mysql_fetch_assoc($result)) {
$whovoted.= '<a href="account.php?Action=AccountInfo&amp;ID='.$who['UserID'].'">'.$who['Username'].'</a> ';
}