Bug #3179715 Procedure and functions are not exported in Server export mode

This commit is contained in:
Marc Delisle
2011-02-13 08:03:36 -05:00
parent fd05984749
commit 708638e1dd

View File

@@ -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 = '$$';