diff options
-rw-r--r-- | include/dblayer/functions_mysql.inc.php | 4 | ||||
-rw-r--r-- | include/dblayer/functions_pgsql.inc.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index 50253237f..80e13c50e 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -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; } diff --git a/include/dblayer/functions_pgsql.inc.php b/include/dblayer/functions_pgsql.inc.php index 5337b4aa5..fc86af083 100644 --- a/include/dblayer/functions_pgsql.inc.php +++ b/include/dblayer/functions_pgsql.inc.php @@ -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; } |