mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Do not highlight table 0 as active
This commit is contained in:
@@ -1076,6 +1076,7 @@ class Adminer {
|
||||
function tablesPrint(array $tables): void {
|
||||
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
|
||||
foreach ($tables as $table => $status) {
|
||||
$table = "$table"; // do not highlight "0" as active everywhere
|
||||
$name = adminer()->tableName($status);
|
||||
if ($name != "") {
|
||||
echo '<li><a href="' . h(ME) . 'select=' . urlencode($table) . '"'
|
||||
|
2
externals/PhpShrink
vendored
2
externals/PhpShrink
vendored
Submodule externals/PhpShrink updated: bc2ad3a1d2...10781d1fbf
@@ -34,6 +34,7 @@ class AdminerMenuLinks extends Adminer\Plugin {
|
||||
// this is copied from Adminer::tablesPrint()
|
||||
echo "<ul id='tables'>" . Adminer\script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
|
||||
foreach ($tables as $table => $status) {
|
||||
$table = "$table"; // do not highlight "0" as active everywhere
|
||||
$name = Adminer\adminer()->tableName($status);
|
||||
if ($name != "") {
|
||||
echo '<li>';
|
||||
|
Reference in New Issue
Block a user