Skip to content

Commit

Permalink
Feature 1255 : bug in install with mysql and postgresql if some form …
Browse files Browse the repository at this point in the history
…parameters are missing.

git-svn-id: http://piwigo.org/svn/trunk@5006 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed Feb 28, 2010
1 parent 4c209bf commit 0c8e06d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/dblayer/functions_mysql.inc.php
Expand Up @@ -34,8 +34,8 @@

function pwg_db_connect($host, $user, $password, $database)
{
$link = mysql_connect($host, $user, $password) or my_error('mysql_connect', true);
mysql_select_db($database, $link) or my_error('mysql_select_db', true);
$link = mysql_connect($host, $user, $password) or my_error('mysql_connect', false);
mysql_select_db($database, $link) or my_error('mysql_select_db', false);

return $link;
}
Expand Down
2 changes: 1 addition & 1 deletion include/dblayer/functions_pgsql.inc.php
Expand Up @@ -49,7 +49,7 @@ function pwg_db_connect($host, $user, $password, $database)
$user,
$password,
$database);
$link = pg_connect($connection_string) or my_error('pg_connect', true);
$link = pg_connect($connection_string) or my_error('pg_connect', false);

return $link;
}
Expand Down

0 comments on commit 0c8e06d

Please sign in to comment.