From f6ee6f4dd247d25aed7589a6cb3e0192dbd1c2c4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 23 Apr 2010 08:35:20 -0400
Subject: [PATCH] - Fix DB Schema checking when some db_table_* options are not set
---
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 ae568d2..580aba8 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -353,10 +353,11 @@
// 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
}
--
Gitblit v1.9.1