fixed bug in the new update list where it doesn't list most of the updated packages, listing instead mostly new ones

This commit is contained in:
pjmattal 2005-08-02 03:28:16 +00:00
parent 65b5c8b0de
commit d9a2a5ea99

View file

@ -132,7 +132,7 @@ print "<td class='boxSoft' valign='top'>";
#Hey, how about listing the newest pacakges? :D
$q = "SELECT * FROM Packages ";
$q.= "WHERE DummyPkg != 1 ";
$q.= "ORDER BY SubmittedTS DESC ";
$q.= "ORDER BY GREATEST(SubmittedTS,ModifiedTS) DESC ";
$q.= "LIMIT 0 , 10";
$result = db_query($q,$dbh);
# Table 2