Revision 1592
Added by darkviper almost 14 years ago
| class.database.php | ||
|---|---|---|
| 306 | 306 |
while ( sizeof($aSql) > 0 ) {
|
| 307 | 307 |
$sSqlLine = trim(array_shift($aSql)); |
| 308 | 308 |
if (!preg_match('/^[-\/]+.*/', $sSqlLine)) {
|
| 309 |
$sql = $sql.' '.$sql_line;
|
|
| 309 |
$sql = $sql.' '.$sSqlLine;
|
|
| 310 | 310 |
if ((substr($sql,-1,1) == ';')) {
|
| 311 | 311 |
$sql = trim(str_replace( $aSearch, $aReplace, $sql)); |
| 312 | 312 |
if (!($bPreserve && preg_match('/^\s*DROP TABLE IF EXISTS/siU', $sql))) {
|
Also available in: Unified diff
little Typo-fix in database::SqlImport()