Commit 4a11290ba2652ce450fbffd5a2b0047db2550d23

fix for trac bug #1805:
bug on line 381 referred to non existant variable, and caused a php notice and potentially would create a misconfigured config.php database type setting.
  
378378
379379 // database
380380 "\$config['db']['database'] = '{$db['database']}';\n\n".
381 ($type == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n":'').
381 ($db['type'] == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n":'').
382382 "\$config['db']['type'] = '{$db['type']}';\n\n".
383383
384384 "?>";