+ correct some indentations in lib.inc.php
// Create data accessor object, if necessary
if (!isset($_no_db_connection)) {
if (!isset($_REQUEST['server'])) {
- echo $lang['strnoserversupplied'];
- exit;
- }
+ echo $lang['strnoserversupplied'];
+ exit;
+ }
$_server_info = $misc->getServerInfo();
// Redirect to the login form if not logged in
$misc->printTable($tables, $columns, $actions, $lang['strnotables']);
echo "<ul class=\"navlink\">\n\t<li><a href=\"tables.php?action=create&{$misc->href}\">{$lang['strcreatetable']}</a></li>\n";
- if ($data->hasCreateTableLike())
+ if (($tables->recordCount() > 0) && $data->hasCreateTableLike())
echo "\t<li><a href=\"tables.php?action=createlike&{$misc->href}\">{$lang['strcreatetablelike']}</a></li>\n";
echo "</ul>\n";
}