alecpl
2010-06-04 648db37e68bc1a3944d32b0fd62f65ea0d07cc7e
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
    }
    
@@ -465,7 +466,7 @@
    
    foreach ($default_hosts as $key => $name) {
      if (!empty($name))
        $out[] = is_numeric($key) ? $name : $key;
        $out[] = rcube_parse_host(is_numeric($key) ? $name : $key);
    }
    
    return $out;