From 7b3dc673d2b0630cabcc47bf823ea6af73366c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 13 Jul 2016 12:12:26 +0200 Subject: [PATCH] Fix exporting multiline comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/plugins/export/ExportSql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/export/ExportSql.php b/libraries/plugins/export/ExportSql.php index 6db93d14dc..0fa54dfb8b 100644 --- a/libraries/plugins/export/ExportSql.php +++ b/libraries/plugins/export/ExportSql.php @@ -600,9 +600,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 '';