diff options
Diffstat (limited to 'phpBB/install/install.php')
| -rw-r--r-- | phpBB/install/install.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/install/install.php b/phpBB/install/install.php index 1b458d278d..7542338804 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -622,10 +622,16 @@ else $sql_query = split_sql_file($sql_query, $delimiter); $sql_count = count($sql_query); + // NOTE: trigger_error does not work here. + $db->return_on_error = true; for($i = 0; $i < $sql_count; $i++) { - $db->sql_query($sql_query[$i]); + if (!$db->sql_query($sql_query[$i])) + { + $error = $db->sql_error($sql_query[$i]); + echo "<br />ERROR: " . $error['message'] . "<br />"; + } } // |
