diff --git a/webstuff/frontend/php_inc/connection.inc.php b/webstuff/frontend/php_inc/connection.inc.php index 0bb8143..38d454a 100644 --- a/webstuff/frontend/php_inc/connection.inc.php +++ b/webstuff/frontend/php_inc/connection.inc.php @@ -21,8 +21,7 @@ class Connection{ /* Verbindung herstellen (wenn noch net besteht)*/ function _createConn(){ //print $this->conn."
"; - $status = pg_connection_status($this->conn); - if($status !== PGSQL_CONNECTION_OK){ + if($this->conn == NULL){ $this->conn = pg_connect(Config::getPgConnString()) or die('Verbindungsaufbau fehlgeschlagen: ' . pg_last_error()); }