Changeset f6ee6f4 in github


Ignore:
Timestamp:
Apr 23, 2010 8:35:20 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
373747b
Parents:
bf67d60
Message:
  • Fix DB Schema checking when some db_table_* options are not set
File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/rcube_install.php

    r2491c62 rf6ee6f4  
    354354    // check list of tables 
    355355    $existing_tables = $DB->list_tables(); 
     356 
    356357    foreach ($db_schema as $table => $cols) { 
    357       if (!in_array($this->config['db_table_'.$table], $existing_tables)) 
     358      $table = !empty($this->config['db_table_'.$table]) ? $this->config['db_table_'.$table] : $table; 
     359      if (!in_array($table, $existing_tables)) 
    358360        $errors[] = "Missing table ".$table; 
    359        
    360361      // TODO: check cols and indices 
    361362    } 
Note: See TracChangeset for help on using the changeset viewer.