Skip to content
Browse files

Remove deprecated eregi functions.

  • Loading branch information...
1 parent 2aff6a9 commit df9bf6a36f1e0569d88643f84e4b11ce6d71a1b3 @markkevans markkevans committed Aug 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/install/includes/functions/database.php
View
2 catalog/install/includes/functions/database.php
@@ -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));

0 comments on commit df9bf6a

Please sign in to comment.
Something went wrong with that request. Please try again.