From b594af0c15bd87af03076beca71e600e8c9b4ab6 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Wed, 27 Jun 2001 11:37:04 +0000 Subject: [PATCH] fixed bug --- tbl_dump.php3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tbl_dump.php3 b/tbl_dump.php3 index c2162ca63..c02f817d4 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -15,10 +15,12 @@ if(empty($asfile)) } else { + if (!isset($table)) $filename=$db; + else $filename=$table; include("./lib.inc.php3"); $ext = "sql"; if($what == "csv") $ext = "csv"; - header("Content-disposition: filename=$table.$ext"); + header("Content-disposition: filename=$filename.$ext"); header("Content-type: application/octetstream"); header("Pragma: no-cache"); header("Expires: 0"); @@ -89,6 +91,7 @@ else echo $crlf; echo "# $strGenTime: ".date("F j, Y, g:i a")."$crlf"; echo "# $strServerVersion: ".MYSQL_MAJOR_VERSION.".".MYSQL_MINOR_VERSION."$crlf"; + echo "# $strPHPVersion: ".phpversion()."$crlf"; echo "# $strDatabase: $db$crlf"; $i = 0;