mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
Feature 1255 : bug in install with mysql and postgresql if some form parameters are missing.
git-svn-id: http://piwigo.org/svn/trunk@5006 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
4c209bf180
commit
0c8e06da4a
2 changed files with 3 additions and 3 deletions
|
@ -34,8 +34,8 @@ define('DB_RANDOM_FUNCTION', 'RAND');
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue