From adb956699853707c7a400f8a3ba5ac848d5f96b3 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 21 Jun 2007 13:11:54 +0000 Subject: Fix sorting with additional url parameters (used in AdServer) --- db_table.class | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/db_table.class b/db_table.class index e38ecec..f45155f 100644 --- a/db_table.class +++ b/db_table.class @@ -302,9 +302,6 @@ function dump_html($tableargs="", $sqlwhere="", $c_fields="", $c_descriptions="" echo "\n"; - if (empty($thispage)) $thispage = $_SERVER['PHP_SELF']; - if (strstr($thispage, "?")) $thispage .= "&"; else $thispage .= "?"; - /* Wenn man keine Titelzeile will, für c_descriptions einfach "," angeben */ if ($descriptions[0]) { @@ -313,7 +310,7 @@ function dump_html($tableargs="", $sqlwhere="", $c_fields="", $c_descriptions="" { if ($_REQUEST[$table_sort] == $fields[$i]) { - $newsort = "$_REQUEST[$table_sort]+DESC"; + $newsort = "$_REQUEST[$table_sort] DESC"; $sortimg = ''; } else if ($_REQUEST[$table_sort] == "$fields[$i] DESC") @@ -329,8 +326,8 @@ function dump_html($tableargs="", $sqlwhere="", $c_fields="", $c_descriptions="" echo "\n"; } -- cgit v1.2.3
\n"; echo "\n\n"; - echo ''; - echo ''; + echo ''; + echo ''; echo "\n
'. $descriptions[$i] .''. $sortimg .''. $descriptions[$i] .''. $sortimg .'
\n"; echo "