]> git.joonet.de Git - adminer.git/commitdiff
Do not highlight table 0 as active
authorJakub Vrana <jakub@vrana.cz>
Wed, 9 Apr 2025 04:27:09 +0000 (06:27 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 9 Apr 2025 04:27:09 +0000 (06:27 +0200)
adminer/include/adminer.inc.php
externals/PhpShrink
plugins/menu-links.php

index 6bc8714eff974e44afb71dffe619ca36ad3aca76..9770999007bf4454242d6d014c0bfc49d00f6895 100644 (file)
@@ -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) . '"'
index bc2ad3a1d2135ae562aec848083979490b71a05b..10781d1fbfebca446179ce62e30fde5c2638ce29 160000 (submodule)
@@ -1 +1 @@
-Subproject commit bc2ad3a1d2135ae562aec848083979490b71a05b
+Subproject commit 10781d1fbfebca446179ce62e30fde5c2638ce29
index 97aef9412232b248a6a75371ae96cbf517b5ba3e..83e4a483fb74c4ce29107a4eb81ca4b8681643fd 100644 (file)
@@ -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>';