From f23d4400d195b521934fb4d7f7de3257609a0af5 Mon Sep 17 00:00:00 2001 From: losinshi Date: Thu, 11 Jan 2007 00:52:03 +0000 Subject: [PATCH] new performance fix for the frontend git-svn-id: file:///home/jan/tmp/wetterstation/trunk@217 dd492736-c11a-0410-ad51-8c26713eaf7f --- webstuff/frontend/php_inc/connection.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); }