summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-20 19:41:35 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-20 19:41:35 +0000
commit85eebfb5ed16a85bd40008e5f045a288bf25dee8 (patch)
tree5456135c9647771ab78de80e1670a9bcb44faad1 /includes
parentf9a7182ab211438835a37cbfb45a77b3886c4f67 (diff)
downloadbrdo-85eebfb5ed16a85bd40008e5f045a288bf25dee8.tar.gz
brdo-85eebfb5ed16a85bd40008e5f045a288bf25dee8.tar.bz2
- Fixed problem introduced by partial integration of the administration pages.
Diffstat (limited to 'includes')
-rw-r--r--includes/tablesort.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 22b5b9648..2e16d8a8d 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -2,11 +2,14 @@
// $Id$
function tablesort_init($header) {
+ static $ts;
- $ts["order"] = tablesort_get_order($header);
- $ts["order_sql"] = tablesort_get_order_sql($header, $ts["order"]);
- $ts["sort"] = tablesort_get_sort($header);
- $ts["query_string"] = tablesort_get_querystring();
+ if (empty($ts)) {
+ $ts["order"] = tablesort_get_order($header);
+ $ts["order_sql"] = tablesort_get_order_sql($header, $ts["order"]);
+ $ts["sort"] = tablesort_get_sort($header);
+ $ts["query_string"] = tablesort_get_querystring();
+ }
return $ts;
}