Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-07-13 13:12:26 +0300
committerMichal Čihař <michal@cihar.com>2016-07-13 13:13:28 +0300
commitab26a8fe97be18f854c12ffda704f253c7706dfd (patch)
tree215dea160ae138d4c53b51153c14f250c7b10981 /libraries
parent0f87b73ae203d79f74765c97f637a51b87205515 (diff)
Fix exporting multiline comments
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/plugins/export/ExportSql.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/plugins/export/ExportSql.class.php b/libraries/plugins/export/ExportSql.class.php
index a5caffee7c..243644663f 100644
--- a/libraries/plugins/export/ExportSql.class.php
+++ b/libraries/plugins/export/ExportSql.class.php
@@ -523,9 +523,11 @@ class ExportSql extends ExportPlugin
return '--' . $GLOBALS['crlf'];
} else {
$lines = preg_split("/\\r\\n|\\r|\\n/", $text);
+ $result = array();
foreach ($lines as $line) {
- return '-- ' . $line . $GLOBALS['crlf'];
+ $result[] = '-- ' . $line . $GLOBALS['crlf'];
}
+ return implode('', $result);
}
} else {
return '';