From 10ea5f5ff63ee7626ba4ad5dfdf3a711c31249e3 Mon Sep 17 00:00:00 2001 From: elij Date: Mon, 25 Apr 2011 23:02:38 -0700 Subject: create variable before referencing it with .= fixes php notice level error: Undefined variable: whovoted in ../tu.php Signed-off-by: Lukas Fleischer --- web/html/tu.php | 1 + 1 file changed, 1 insertion(+) 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.= ''.$who['Username'].' '; } -- cgit v1.2.3-70-g09d2