From 89ecfb83c5bcc57e5dbd3e96652e88c6602532b6 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 2 Oct 2004 12:56:44 +0000 Subject: [PATCH] bug 1038804 - insufficient space to save --- ChangeLog | 1 + export.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8de453d14..241fd5809 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2004-10-02 Marc Delisle * tbl_alter.php: field structure changes not applied (CVS version only) + * export.php: bug #1038804, insufficient space to save 2004-09-30 Marc Delisle * tbl_addfield.php: bug #1037744 (CVS version only): cannot add a field diff --git a/export.php b/export.php index 4afea826d..2cf94f540 100644 --- a/export.php +++ b/export.php @@ -101,7 +101,7 @@ function PMA_exportOutputHandler($line) } } else { if ($GLOBALS['asfile']) { - if ($GLOBALS['save_on_server']) { + if ($GLOBALS['save_on_server'] && strlen($line) > 0) { $write_result = @fwrite($GLOBALS['file_handle'], $line); if (!$write_result || ($write_result != strlen($line))) { $GLOBALS['message'] = sprintf($GLOBALS['strNoSpace'], htmlspecialchars($save_filename));