2
0
forked from Wavyzz/dolibarr

Fix: BUG#33584

This commit is contained in:
Laurent Destailleur
2011-06-17 18:44:08 +00:00
parent 29c1bb3d3b
commit 222ededb71

View File

@@ -144,7 +144,7 @@ function run_sql($sqlfile,$silent=1,$entity='',$usesavepoint=1,$handler='')
// Add line buf to buffer if not a comment
if (! preg_match('/^--/',$buf))
{
$buf=preg_repalce('/--.*$/','',$buf); //remove comment from a line that not start with -- before add it to the buffer
$buf=preg_replace('/--.*$/','',$buf); //remove comment from a line that not start with -- before add it to the buffer
$buffer .= trim($buf);
}