From 81bdcec2acbc491778be4ab7aa17392e079b4197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 7 Feb 2013 12:11:07 +0100 Subject: [PATCH] This variable might be unset --- export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/export.php b/export.php index 512391d2e4..429bc1db32 100644 --- a/export.php +++ b/export.php @@ -658,7 +658,7 @@ do { } // We export just one table // $allrows comes from the form when "Dump all rows" has been selected - if ($allrows == '0' && $limit_to > 0 && $limit_from >= 0) { + if (isset($allrows) && $allrows == '0' && $limit_to > 0 && $limit_from >= 0) { $add_query = ' LIMIT ' . (($limit_from > 0) ? $limit_from . ', ' : '') . $limit_to; @@ -767,7 +767,7 @@ if (! empty($asfile)) { } } elseif ($compression == 'gzip') { // 3. as a gzipped file - if (@function_exists('gzencode') + if (@function_exists('gzencode') && ! @ini_get('zlib.output_compression') // Here, we detect Apache's mod_deflate so we bet that // this module is active for this instance of phpMyAdmin