Avoid variable collision

This commit is contained in:
Jakub Vrana 2013-02-19 16:46:29 -08:00
parent 8caa889635
commit 356cadf2b2

View file

@ -158,12 +158,12 @@ if ($adminer->homepage()) {
if (support("type")) { if (support("type")) {
echo "<h3>" . lang('User types') . "</h3>\n"; echo "<h3>" . lang('User types') . "</h3>\n";
$types = types(); $user_types = types();
if ($types) { if ($user_types) {
echo "<table cellspacing='0'>\n"; echo "<table cellspacing='0'>\n";
echo "<thead><tr><th>" . lang('Name') . "</thead>\n"; echo "<thead><tr><th>" . lang('Name') . "</thead>\n";
odd(''); odd('');
foreach ($types as $val) { foreach ($user_types as $val) {
echo "<tr" . odd() . "><th><a href='" . h(ME) . "type=" . urlencode($val) . "'>" . h($val) . "</a>\n"; echo "<tr" . odd() . "><th><a href='" . h(ME) . "type=" . urlencode($val) . "'>" . h($val) . "</a>\n";
} }
echo "</table>\n"; echo "</table>\n";