From f3600a79ec147e041a07ac06742e29a758fa5364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 18 Nov 2021 13:40:27 +0100 Subject: [PATCH] Disabled Output on Connection error --- include/pgsql.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pgsql.class.php b/include/pgsql.class.php index 2daf2283a..92a6d0494 100644 --- a/include/pgsql.class.php +++ b/include/pgsql.class.php @@ -32,12 +32,12 @@ class basis_db extends db //Connection Herstellen if (DB_CONNECT_PERSISTENT) { - if(!basis_db::$db_conn = pg_pconnect($conn_str)) + if(!basis_db::$db_conn = @pg_pconnect($conn_str)) die('Fehler beim Oeffnen der Datenbankverbindung'); } else { - if(!basis_db::$db_conn = pg_connect($conn_str)) + if(!basis_db::$db_conn = @pg_connect($conn_str)) die('Fehler beim Oeffnen der Datenbankverbindung'); } }