mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 12:00:41 +02:00
Remove order of not used functions
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@676 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -61,7 +61,7 @@ foreach ((array) $_GET["where"] as $val) {
|
|||||||
}
|
}
|
||||||
$order = array();
|
$order = array();
|
||||||
foreach ((array) $_GET["order"] as $key => $val) {
|
foreach ((array) $_GET["order"] as $key => $val) {
|
||||||
if (in_array($val, $columns, true) || preg_match('(^(COUNT\\(\\*\\)|(' . strtoupper(implode('|', $functions) . '|' . implode('|', $grouping)) . ')\\((' . implode('|', array_map('preg_quote', array_map('idf_escape', $columns))) . ')\\))$)', $val)) {
|
if (in_array($val, $columns, true) || in_array($val, $select, true)) {
|
||||||
$order[] = idf_escape($val) . (isset($_GET["desc"][$key]) ? " DESC" : "");
|
$order[] = idf_escape($val) . (isset($_GET["desc"][$key]) ? " DESC" : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user