diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 82315054..912e9593 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -231,17 +231,25 @@ class Adminer { */ function selectQuery($query, $start, $failed = false) { global $jush, $driver; - $return = "
\n"; // required for IE9 inline edit + + $supportSql = support("sql"); + + $result = ""
+ . "" . h(str_replace("\n", " ", $query)) . "
"
+ . "(" . format_time($start) . ")"
+ . ($supportSql ? " " . lang('Edit') . "" : "");
+
if (!$failed && ($warnings = $driver->warnings())) {
$id = "warnings";
- $return = ", " . lang('Warnings') . "" . script("qsl('a').onclick = partial(toggle, '$id');", "")
- . "$return
" . h(str_replace("\n", " ", $query)) . "
(" . format_time($start) . ")"
- . (support("sql") ? " " . lang('Edit') . "" : "")
- . $return
- ;
+
+ return $result;
}
/** Query printed in SQL command before execution