From ab26a8fe97be18f854c12ffda704f253c7706dfd 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 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 '';