From e2f3bee01ee1880e7d3c161fed910651979fb4cc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 28 Sep 2012 09:16:52 +0200 Subject: pkgfuncs.inc.php: Fix undefined variable notice Fixes a undefined variable notice in getvotes() that popped up when a package without any votes was requested. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 3589dbbc..6a7cbb57 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -993,6 +993,7 @@ function getvotes($pkgid, $dbh=NULL) { return; } + $votes = array(); while ($row = $result->fetch(PDO::FETCH_ASSOC)) { $votes[] = $row; } -- cgit v1.2.3-24-g4f1b