mirror of
https://github.com/vrana/adminer.git
synced 2025-08-22 14:12:51 +02:00
Don't display warnings for failed queries
This commit is contained in:
@@ -140,7 +140,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
}
|
||||
}
|
||||
|
||||
function selectQuery($query, $start) {
|
||||
function selectQuery($query, $start, $failed = false) {
|
||||
return "<!--\n" . str_replace("--", "--><!-- ", $query) . "\n(" . format_time($start) . ")\n-->\n";
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
return "";
|
||||
}
|
||||
|
||||
function messageQuery($query, $time) {
|
||||
function messageQuery($query, $time, $failed = false) {
|
||||
return " <span class='time'>" . @date("H:i:s") . "</span><!--\n" . str_replace("--", "--><!-- ", $query) . "\n" . ($time ? "($time)\n" : "") . "-->";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user