Remove redundant function

This commit is contained in:
Paul Gear
2016-01-02 07:10:43 +10:00
parent e89984e316
commit eb1dbc74c7
4 changed files with 6 additions and 12 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ $wheresql = ' WHERE `device_id` = ?';
// all columns are searchable - search across them
if (isset($searchPhrase) && !empty($searchPhrase)) {
$searchsql = implode(' OR ', array_map("search_phrase_column", array_map("quote_sql_word", $columns)));
$searchsql = implode(' OR ', array_map("search_phrase_column", array_map("mres", $columns)));
$wheresql .= " AND ( $searchsql )";
}
$sql .= $wheresql;
@@ -51,7 +51,7 @@ if (empty($total)) {
// sort by first three columns by default
if (!isset($sort) || empty($sort)) {
$sort = implode(', ', array_map("quote_sql_word", array_slice($columns, 0, 3)));
$sort = implode(', ', array_map("mres", array_slice($columns, 0, 3)));
}
$sql .= " ORDER BY $sort";