aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-03-22 20:31:53 +0000
committernikrou <nikrou@piwigo.org>2010-03-22 20:31:53 +0000
commitd6fa0a5823d32ae9eefb5915c37356c2559d28ba (patch)
tree13c422cdba727a776f09b6c7e701ad7c4f50197c /include
parentf4f8b96e979d45c397ada36a2dad0399517ebe0d (diff)
Fix warning for postgresql installation
Remove unused function git-svn-id: http://piwigo.org/svn/trunk@5267 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/dblayer/functions_pgsql.inc.php7
1 files changed, 1 insertions, 6 deletions
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;