summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-28 09:16:52 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-10-03 00:21:21 +0200
commite2f3bee01ee1880e7d3c161fed910651979fb4cc (patch)
tree437578d4df93d395e71573cb88615e09b8346baa /web
parent9052aac127bdd412b09dbb433bd165ec541f9df8 (diff)
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 3589dbb..6a7cbb5 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;
}