Fixed logout error when setting show users online.
[fa-stable.git] / admin / create_coy.php
index 6ed2c7743429950a4da971a43db48e5ef5946428..f500feb9cd26b85ca6c17684cf1179286b197bbf 100644 (file)
@@ -42,7 +42,7 @@ function check_data()
 
        if ($_POST['name'] == "" || $_POST['host'] == "" || $_POST['dbuser'] == "" || $_POST['dbname'] == "")
        {
-               display_error(_("Database setting are not specified."));
+               display_error(_("Database settings are not specified."));
                return false;
        }
 
@@ -284,11 +284,6 @@ function display_company_edit($selected_id)
 {
        global $def_coy, $db_connections, $tb_pref_counter;
 
-       if ($selected_id != -1)
-               $n = $selected_id;
-       else
-               $n = count($db_connections);
-
        start_form();
 
        start_table(TABLESTYLE2);