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