diff options
author | elij <elij.mx@gmail.com> | 2011-04-25 23:02:38 -0700 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-27 14:50:28 +0200 |
commit | 10ea5f5ff63ee7626ba4ad5dfdf3a711c31249e3 (patch) | |
tree | eceb4a3a35e3c035bbc3804381b686b80e29614a /web | |
parent | 33a765ef039552f7ecbd3cfe8b028df98f840f90 (diff) |
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')
-rw-r--r-- | web/html/tu.php | 1 |
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&ID='.$who['UserID'].'">'.$who['Username'].'</a> '; } |