[aur-dev] [PATCH 1/1] create variable before referencing it with .=
fixes php notice level error: Undefined variable: whovoted in ../tu.php --- 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> '; } -- 1.7.4.1
On Mon, Apr 25, 2011 at 11:02:38PM -0700, elij wrote:
fixes php notice level error: Undefined variable: whovoted in ../tu.php --- web/html/tu.php | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Thanks, pushed that as well.
participants (2)
-
elij
-
Lukas Fleischer