X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=install%2Fsave.php;h=054605531083ca03337704b89f20f86eda153b6c;hb=ff3e736c3b61a9b2178202e0f014c5bbcc95d777;hp=d8a78d215f951ab5ba09abe8537e2d08898033db;hpb=4a73532a91b7f067a5107a7021e5984b7d0ed6cb;p=fa-stable.git diff --git a/install/save.php b/install/save.php index d8a78d21..05460553 100644 --- a/install/save.php +++ b/install/save.php @@ -41,7 +41,14 @@ function set_error($message) $_SESSION['database_username'] = $_POST['database_username']; $_SESSION['database_password'] = $_POST['database_password']; $_SESSION['database_name'] = $_POST['database_name']; - $_SESSION['table_prefix'] = $_POST['table_prefix']; + if(!isset($_POST['table_prefix'])) + { + $_SESSION['table_prefix'] = false; + } + else + { + $_SESSION['table_prefix'] = true; + } if(!isset($_POST['install_tables'])) { $_SESSION['install_tables'] = false; @@ -229,7 +236,11 @@ else $database_name = $_POST['database_name']; } // Get table prefix -$table_prefix = $_POST['table_prefix']; +if (isset($_POST['table_prefix']) && $_POST['table_prefix'] == 'true') + $table_prefix = "0_"; +else + $table_prefix = ""; + // Find out if the user wants to install tables and data if (isset($_POST['install_tables']) && $_POST['install_tables'] == 'true') {