php 8 error. class.mail.inc. line 149. #5 parameter cannot be null.
[fa-stable.git] / install / index.php
index 7e164e81bf3a5f9f27cfdb5578e70e8986fcf24a..8e44b468f315f607fdfcf51fa82618d3561577ff 100644 (file)
@@ -235,7 +235,7 @@ elseif (isset($_POST['db_test'])) {
                        'host' => $_POST['host'],
                        'port' => $_POST['port'],
                        'dbuser' => $_POST['dbuser'],
-                       'dbpassword' => $_POST['dbpassword'],
+                       'dbpassword' => @html_entity_decode($_POST['dbpassword'], ENT_QUOTES, $_SESSION['language']->encoding=='iso-8859-2' ? 'ISO-8859-1' : $_SESSION['language']->encoding),
                        'dbname' => $_POST['dbname'],
                        'tbpref' => $_POST['tbpref'] ? '0_' : '',
                        'sel_langs' => check_value('sel_langs'),
@@ -358,6 +358,7 @@ start_form();
                        check_row(_("Install Additional Language Packs from FA Repository:"), 'sel_langs');
                        check_row(_("Install Additional COAs from FA Repository:"), 'sel_coas');
                        end_table(1);
+                       display_note(_("Use database user/password with permissions to create new database, or use proper credentials for previously created empty database."));
                        display_note(_("Select collation you want to use. If you are unsure or you will use various languages, select unicode collation."));
                        display_note(_("Use table prefix if you share selected database for more than one FA company using the same collation."));
                        display_note(_("Do not select additional langs nor COAs if you have no working internet connection right now. You can install them later."));