added sorting.patch from dsa to close bug #4659, sorting error

This commit is contained in:
pjmattal 2006-06-12 02:13:43 +00:00
parent 7495613d59
commit c94000db49

View file

@ -995,7 +995,13 @@ function pkg_search_page($SID="") {
# print " <th style='border-bottom: #666 1px solid; vertical-align:";
# print " bottom'><span class='f2'>".__("Manage")."</span></th>\n";
# }
print "</tr>\n";
print "</tr>\n";
# Solve the sorting problem, so we can force the
# passage of the sorting params to the next pages.
# Added by: dsa <dsandrade@gmail.com>
print "<input type='hidden' name='SB' value='".$_REQUEST['SB']."' >";
print "<input type='hidden' name='SO' value='".$_REQUEST['SO']."' >";
for ($i=0; $row = mysql_fetch_assoc($result); $i++) {
(($i % 2) == 0) ? $c = "data1" : $c = "data2";