Don't download script with no tables

This commit is contained in:
Jakub Vrana 2010-10-18 02:15:13 +02:00
parent ea258302b4
commit 09327efdaf

View file

@ -154,7 +154,9 @@ if ($_GET["ns"] !== "") {
echo '<p><a href="' . h(ME) . 'event=">' . lang('Create event') . "</a>\n";
}
page_footer();
echo "<script type='text/javascript' src='" . h(ME . "script=db&token=$token") . "'></script>\n";
exit; // page_footer() already called
if ($tables_list) {
page_footer();
echo "<script type='text/javascript' src='" . h(ME . "script=db&token=$token") . "'></script>\n";
exit; // page_footer() already called
}
}