From 708638e1dd30ef8b9d6c92ab749eb01587f35242 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 13 Feb 2011 08:03:36 -0500 Subject: [PATCH] Bug #3179715 Procedure and functions are not exported in Server export mode --- libraries/export/sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/export/sql.php b/libraries/export/sql.php index f155b6fe2..677eac5ea 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -375,7 +375,7 @@ function PMA_exportDBCreate($db) $result = PMA_exportOutputHandler('USE ' . $db . ';' . $crlf); } - if ($result && isset($GLOBALS['sql_structure']) && isset($GLOBALS['sql_procedure_function'])) { + if ($result && strpos($GLOBALS['sql_structure_or_data'], 'structure') !== false && isset($GLOBALS['sql_procedure_function'])) { $text = ''; $delimiter = '$$';