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:
elij 2011-04-25 23:02:38 -07:00 committed by Lukas Fleischer
parent 33a765ef03
commit 10ea5f5ff6

View file

@ -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> ';
}