mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix latest_pkgs() again
In 4cd6841
(pkgfuncs.inc.php: Fix latest_pkgs(), 2014-05-29),
latest_pkgs() was modified to work with the new database layout.
However, since all columns were selected, package names have been
overwritten by package base names since that change. Qualify the
*-shorthand to avoid this.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
e37a49d726
commit
43f5167f75
1 changed files with 2 additions and 1 deletions
|
@ -954,7 +954,8 @@ function pkg_add_lic($pkgid, $licid) {
|
|||
function latest_pkgs($numpkgs) {
|
||||
$dbh = DB::connect();
|
||||
|
||||
$q = "SELECT * FROM Packages LEFT JOIN PackageBases ON ";
|
||||
$q = "SELECT Packages.*, MaintainerUID, SubmittedTS ";
|
||||
$q.= "FROM Packages LEFT JOIN PackageBases ON ";
|
||||
$q.= "PackageBases.ID = Packages.PackageBaseID ";
|
||||
$q.= "ORDER BY SubmittedTS DESC ";
|
||||
$q.= "LIMIT " . intval($numpkgs);
|
||||
|
|
Loading…
Add table
Reference in a new issue