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