From 6683308f79d14b31cb69b73c3b369a3ffd3bf9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 7 Jul 2001 17:33:25 +0000 Subject: [PATCH] Added a '#' before 'No tables found' in a geneted dump file --- ChangeLog | 2 ++ tbl_dump.php3 | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2d303a7c..556098dd3 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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ïc Chapeaux * users_details.php3: fixed many little scripting bugs. diff --git a/tbl_dump.php3 b/tbl_dump.php3 index 3979ef313..2f96ba94c 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -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 {