diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-28 09:16:52 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-03 00:21:21 +0200 |
commit | e2f3bee01ee1880e7d3c161fed910651979fb4cc (patch) | |
tree | 437578d4df93d395e71573cb88615e09b8346baa /web | |
parent | 9052aac127bdd412b09dbb433bd165ec541f9df8 (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.php | 1 |
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; } |