Permalink
Browse files

Display link to refresh with no databases

  • Loading branch information...
1 parent 0da02c5 commit b7af79e7453a8317759b16f939249c32b8fd34a7 @vrana committed Aug 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 adminer/include/connect.inc.php
@@ -26,6 +26,7 @@ function connect_error() {
if ($_GET["refresh"]) {
set_session("dbs", null);
}
+ $refresh = "<a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>\n";
$databases = $adminer->databases();
if ($databases) {
$scheme = support("scheme");
@@ -45,8 +46,10 @@ function connect_error() {
echo "<script type='text/javascript'>tableCheck();</script>\n";
echo "<p><input type='submit' name='drop' value='" . lang('Drop') . "'" . confirm("formChecked(this, /db/)") . ">\n";
echo "<input type='hidden' name='token' value='$token'>\n";
- echo "<a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>\n";
+ echo $refresh;
echo "</form>\n";
+ } else {
+ echo "<p>$refresh";
}
}
page_footer("db");

0 comments on commit b7af79e

Please sign in to comment.