diff options
author | alecpl <alec@alec.pl> | 2010-04-23 12:35:20 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-04-23 12:35:20 +0000 |
commit | f6ee6f4dd247d25aed7589a6cb3e0192dbd1c2c4 (patch) | |
tree | 1b10a287c90d35b4891381f21834efdfe3953e81 | |
parent | bf67d60e435a6f01b835a0d5afb9737f81560433 (diff) |
- Fix DB Schema checking when some db_table_* options are not set
-rw-r--r-- | installer/rcube_install.php | 5 |
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 } |