]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix for trac bug #1805:
authorBrett Taylor <brett@webfroot.co.nz>
Tue, 11 Aug 2009 03:26:41 +0000 (15:26 +1200)
committerBrenda Wallace <shiny@cpan.org>
Tue, 11 Aug 2009 03:30:03 +0000 (15:30 +1200)
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.

install.php

index f02a0666387518794b51588bca06319ca1494933..9bcee275f1973b04b55ffdde02788613fb251210 100644 (file)
@@ -378,7 +378,7 @@ function writeConf($sitename, $server, $path, $fancy, $db)
             
             // database
             "\$config['db']['database'] = '{$db['database']}';\n\n".
-            ($type == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n":'').
+            ($db['type'] == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n":'').
             "\$config['db']['type'] = '{$db['type']}';\n\n".
             
             "?>";