Added a '#' before 'No tables found' in a geneted dump file

This commit is contained in:
Loïc Chapeaux
2001-07-07 17:33:25 +00:00
parent bdc19fd749
commit 6683308f79
2 changed files with 7 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ $Source$
tag.
* lib.inc.php3, lines 946-950; db_details.php3, lines 96 & 118; language
files: thousands and decimal separators are now language dependant.
* tbl_dump.php3, lines 78: Added a '#' before 'No tables found' so the
generated dump file may be imported later even if there is no table.
2001-07-06 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* users_details.php3: fixed many little scripting bugs.

View File

@@ -20,10 +20,10 @@ else
include("./lib.inc.php3");
$ext = "sql";
if($what == "csv") $ext = "csv";
header("Content-disposition: filename=$filename.$ext");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");
header('Content-Type: application/octetstream');
header('Content-Disposition: filename="' . $filename . '.' . $ext . '"');
header('Pragma: no-cache');
header('Expires: 0');
// doing some DOS-CRLF magic...
@@ -75,7 +75,7 @@ else{
}
if($num_tables == 0)
{
echo $strNoTablesFound;
echo "# $strNoTablesFound";
}
else
{