summaryrefslogtreecommitdiff
path: root/db_table.class
diff options
context:
space:
mode:
Diffstat (limited to 'db_table.class')
-rw-r--r--db_table.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/db_table.class b/db_table.class
index 0ab25da..e38ecec 100644
--- a/db_table.class
+++ b/db_table.class
@@ -278,7 +278,7 @@ function dump_html($tableargs="", $sqlwhere="", $c_fields="", $c_descriptions=""
if ($default_order == "")
$default_order = $fields[0];
- if (!in_array(it::replace(' DESC$' => "", $_REQUEST[$table_sort]), $fields))
+ if (!in_array(it::replace(array(' DESC$' => ""), $_REQUEST[$table_sort]), $fields))
$_REQUEST[$table_sort] = $default_order;
$sql = "SELECT $c_fields FROM $this->name";