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>
This commit is contained in:
Lukas Fleischer 2012-09-28 09:16:52 +02:00
parent 9052aac127
commit e2f3bee01e

View file

@ -993,6 +993,7 @@ function getvotes($pkgid, $dbh=NULL) {
return; return;
} }
$votes = array();
while ($row = $result->fetch(PDO::FETCH_ASSOC)) { while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$votes[] = $row; $votes[] = $row;
} }