mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Print elapsed time in HTML instead of SQL command comment
This commit is contained in:
@@ -139,10 +139,11 @@ if (isset($_GET["elastic"])) {
|
||||
if ($data["query"] && !$data["query"]["filtered"]["query"]) {
|
||||
$data["query"]["filtered"]["query"] = array("match_all" => array());
|
||||
}
|
||||
if ($print) {
|
||||
echo $adminer->selectQuery("$query: " . print_r($data, true));
|
||||
}
|
||||
$start = microtime(true);
|
||||
$search = $this->_conn->query($query, $data);
|
||||
if ($print) {
|
||||
echo $adminer->selectQuery("$query: " . print_r($data, true), format_time($start, microtime(true)));
|
||||
}
|
||||
if (!$search) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user