diff options
author | Michal Čihař <michal@cihar.com> | 2016-07-13 13:12:26 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-07-13 13:13:28 +0300 |
commit | ab26a8fe97be18f854c12ffda704f253c7706dfd (patch) | |
tree | 215dea160ae138d4c53b51153c14f250c7b10981 /libraries | |
parent | 0f87b73ae203d79f74765c97f637a51b87205515 (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.php | 4 |
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 ''; |