Commit e2f3bee0 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 9052aac1
...@@ -993,6 +993,7 @@ function getvotes($pkgid, $dbh=NULL) { ...@@ -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;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment