From 2ac1359292f8ae081a7f9565a70ecb6afbd1f78b 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.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/export/ExportSql.class.php b/libraries/plugins/export/ExportSql.class.php index 96d280d25bc1..c42fc25e838f 100644 --- a/libraries/plugins/export/ExportSql.class.php +++ b/libraries/plugins/export/ExportSql.class.php @@ -583,9 +583,11 @@ private function _exportComment($text = '') 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 '';