[aur-dev] [PATCH 1/1] create variable before referencing it with .=

elij elij.mx at gmail.com
Tue Apr 26 02:02:38 EDT 2011


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



More information about the aur-dev mailing list