Fix exporting multiline comments

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-07-13 12:12:26 +02:00
parent 0f87b73ae2
commit ab26a8fe97

View File

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