From d6fa0a5823d32ae9eefb5915c37356c2559d28ba Mon Sep 17 00:00:00 2001 From: nikrou Date: Mon, 22 Mar 2010 20:31:53 +0000 Subject: Fix warning for postgresql installation Remove unused function git-svn-id: http://piwigo.org/svn/trunk@5267 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_pgsql.inc.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include/dblayer') diff --git a/include/dblayer/functions_pgsql.inc.php b/include/dblayer/functions_pgsql.inc.php index 5c928c53c..df1ce2649 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); + $link = @pg_connect($connection_string); if (!$link) { throw new Exception("Can't connect to server"); @@ -60,11 +60,6 @@ function pwg_db_connect($host, $user, $password, $database) } } -function pwg_select_db($database=null, $link=null, $die=null) -{ - return true; -} - function pwg_db_check_charset() { return true; -- cgit v1.2.3