Skip to content

Commit

Permalink
Fix use of a missing variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <[email protected]>
  • Loading branch information
Tithugues committed Feb 28, 2014
1 parent 1fc31bb commit 1b13eca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion export.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@

// Compression needed?
if ($compression) {
$dump_buffer = PMA_compressExport($dump_buffer, $compression);
$dump_buffer
= PMA_compressExport($dump_buffer, $compression, $filename);
}

/* If we saved on server, we have to close file now */
Expand Down
5 changes: 3 additions & 2 deletions libraries/export.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,15 @@ function PMA_closeExportFile($file_handle, $dump_buffer, $save_filename)
}

/**
* Compress the export buffer
* Compress the export buffer
*
* @param string $dump_buffer the current dump buffer
* @param string $compression the compression mode
* @param string $filename the filename
*
* @return object $message a message object (or empty string)
*/
function PMA_compressExport($dump_buffer, $compression)
function PMA_compressExport($dump_buffer, $compression, $filename)
{
if ($compression == 'zip' && @function_exists('gzcompress')) {
$zipfile = new ZipFile();
Expand Down

0 comments on commit 1b13eca

Please sign in to comment.