mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/8494] Ignore errors from the database schema preparation
This allows installing phpBB twice in the same database with a different prefix PHPBB3-8494
This commit is contained in:
parent
18de60c0e0
commit
fb71e6dde6
1 changed files with 4 additions and 6 deletions
|
@ -1164,12 +1164,10 @@ class install_install extends module
|
|||
|
||||
foreach ($sql_query as $sql)
|
||||
{
|
||||
//$sql = trim(str_replace('|', ';', $sql));
|
||||
if (!$db->sql_query($sql))
|
||||
{
|
||||
$error = $db->sql_error();
|
||||
$this->p_master->db_error($error['message'], $sql, __LINE__, __FILE__);
|
||||
}
|
||||
// Ignore errors when the functions or types already exist
|
||||
// to allow installing phpBB twice in the same database with
|
||||
// a different prefix
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
unset($sql_query);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue