diff --git a/design.inc.php b/design.inc.php index 7518b175..821e597e 100644 --- a/design.inc.php +++ b/design.inc.php @@ -76,16 +76,18 @@ function page_footer($missing = false) {

" /> - + + + +" /> +

+ +
query($query); $return = array(); - while ($row = $result->fetch_row()) { - $return[] = $row[0]; + $result = $mysql->query($query); + if ($result) { + while ($row = $result->fetch_row()) { + $return[] = $row[0]; + } + $result->free(); } - $result->free(); return $return; } diff --git a/index.php b/index.php index 49d385d4..aa7a1798 100644 --- a/index.php +++ b/index.php @@ -166,7 +166,8 @@ if (isset($_GET["download"])) { } echo "\n"; echo "

\n"; - echo "

" . lang('Move to other database') . ":

\n"; + $db = (isset($_POST["target"]) ? $_POST["target"] : $_GET["db"]); + echo "

" . lang('Move to other database') . (get_databases() ? ": " : ': ') . "

\n"; echo "\n"; } $result->free();