mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
9052aac127
commit
e2f3bee01e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue