Skip to content

Commit

Permalink
fixed default values for database connection
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@770 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Mar 7, 2002
1 parent f286e34 commit ab26e65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core_database_API.php
Expand Up @@ -23,16 +23,16 @@ function db_connect($p_hostname="", $p_username="",
if ( empty( $p_hostname ) ) {
$p_hostname = $g_hostname;
}
if ( empty( $p_hostname ) ) {
if ( empty( $p_username ) ) {
$p_username = $g_db_username;
}
if ( empty( $p_hostname ) ) {
if ( empty( $p_password ) ) {
$p_password = $g_db_password;
}
if ( empty( $p_hostname ) ) {
if ( empty( $p_database ) ) {
$p_database = $g_database_name;
}
if ( empty( $p_hostname ) ) {
if ( empty( $p_port ) ) {
$p_port = $g_port;
}

Expand Down

0 comments on commit ab26e65

Please sign in to comment.