Skip to content

Commit

Permalink
Remove deprecated eregi functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
markkevans committed Aug 28, 2011
1 parent 2aff6a9 commit df9bf6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/install/includes/functions/database.php
Expand Up @@ -95,7 +95,7 @@ function osc_db_install($database, $sql_file) {
if ($next == '') { // get the last insert query
$next = 'insert';
}
if ( (eregi('create', $next)) || (eregi('insert', $next)) || (eregi('drop t', $next)) ) {
if ( (preg_match('/create/i', $next)) || (preg_match('/insert/i', $next)) || (preg_match('/drop t/i', $next)) ) {
$next = '';
$sql_array[] = substr($restore_query, 0, $i);
$restore_query = ltrim(substr($restore_query, $i+1));
Expand Down

0 comments on commit df9bf6a

Please sign in to comment.