summaryrefslogtreecommitdiff
path: root/installer/rcube_install.php
diff options
context:
space:
mode:
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r--installer/rcube_install.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index ae568d223..580aba858 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -353,10 +353,11 @@ class rcube_install
// check list of tables
$existing_tables = $DB->list_tables();
+
foreach ($db_schema as $table => $cols) {
- if (!in_array($this->config['db_table_'.$table], $existing_tables))
+ $table = !empty($this->config['db_table_'.$table]) ? $this->config['db_table_'.$table] : $table;
+ if (!in_array($table, $existing_tables))
$errors[] = "Missing table ".$table;
-
// TODO: check cols and indices
}