From c106cf2a34db6c7bbf71a9cfa342e25c4113c52b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 11 Jan 2014 18:42:13 -0800 Subject: [PATCH] Use JUSH only with supported drivers --- adminer/include/adminer.inc.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 12df8c50..63f3ae89 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -69,13 +69,15 @@ class Adminer { */ function head() { global $jush; - ?> + if (support("sql")) { + ?> " . lang('No tables.') . "\n"; } else { $this->tablesPrint($tables); - $links = array(); - foreach ($tables as $table => $type) { - $links[] = preg_quote($table, '/'); + if (support("sql")) { + $links = array(); + foreach ($tables as $table => $type) { + $links[] = preg_quote($table, '/'); + } + echo "\n"; } - echo "\n"; } } }