diff --git a/htdocs/install/step2.php b/htdocs/install/step2.php index d751ba9f639..73fc88510c4 100644 --- a/htdocs/install/step2.php +++ b/htdocs/install/step2.php @@ -202,7 +202,7 @@ if ($action == "set") { // Test on permission not required. Already managed by $tabledata = array(); if (is_resource($handle)) { while (($file = readdir($handle)) !== false) { - if (preg_match('/\.sql$/i', $file) && preg_match('/^llx_/i', $file) && !preg_match('/\.key\.sql$/i', $file) && !preg_match('/\-/', $file)) { + if (preg_match('/\.sql$/i', $file) && preg_match('/^llx_/i', $file) && !preg_match('/\.key\.sql$/i', $file)) { $tablefound++; $tabledata[] = $file; } @@ -300,7 +300,7 @@ if ($action == "set") { // Test on permission not required. Already managed by $tabledata = array(); if (is_resource($handle)) { while (($file = readdir($handle)) !== false) { - if (preg_match('/\.sql$/i', $file) && preg_match('/^llx_/i', $file) && preg_match('/\.key\.sql$/i', $file) && !preg_match('/\-/', $file)) { + if (preg_match('/\.sql$/i', $file) && preg_match('/^llx_/i', $file) && preg_match('/\.key\.sql$/i', $file)) { $tablefound++; $tabledata[] = $file; }